In pydantic we can define range of values for numeric fields. You can define this either using custom types like PositiveInteger or using Field api. Both approaches generate json schemas with maximum and minimum keys. We should validate numeric values in the forms based on the json schema definition
In pydantic we can define range of values for numeric fields. You can define this either using custom types like PositiveInteger or using
Field
api. Both approaches generate json schemas withmaximum
andminimum
keys. We should validate numeric values in the forms based on the json schema definition