OAS defines some additional constraints that can be placed on elements of schemas, such as minimum value, the range of the number of items etc. We should implement such validators suitable for usage with marshmallow.fields.
Some validators are already present in marshmallow.validate, others have to be implemented by us. Here is a summary of the situation:
multipleOf: not implemented
maximum: halfway implemented by validate.Range (but does not allow to specify exclusive min/max)
OAS defines some additional constraints that can be placed on elements of schemas, such as minimum value, the range of the number of items etc. We should implement such validators suitable for usage with
marshmallow.fields
.Some validators are already present in
marshmallow.validate
, others have to be implemented by us. Here is a summary of the situation:validate.Range
(but does not allow to specify exclusive min/max)validate.Length
validate.Length
validate.Regexp
validate.OneOf