pub fn parse_enum_constraint( field_name: &str, value: &Value, allowed_values: &[String], ) -> Result<EnumConstraint>