Associate fields with the enum which describes their allowed values.