We can specify constraints for the different fields in the JSON schema specification. Only maxLength for strings is currently implemented. Remaining:
Strings
and the default formats that can be specified via the format keyword:
Numeric types
Arrays
Tuples
See https://json-schema.org/understanding-json-schema/reference/array#tupleValidation
Required fields
We should handle optional fields as well, i.e. those not specified in the required field of the schema.
We can specify constraints for the different fields in the JSON schema specification. Only
maxLengthfor strings is currently implemented. Remaining:Strings
minLengthpatternand the default formats that can be specified via the
formatkeyword:date-timetimedatedurationemailidn-emailhostnameidn-hostnameipv4ipv6uuiduriuri-referenceiriiri-referenceuri-templateregexNumeric types
multipleOfminimumexclusiveMinimummaximumexclusiveMaximumArrays
minItemsmaxItems(may only be applicable dynamically)uniqueItemsTuples
See https://json-schema.org/understanding-json-schema/reference/array#tupleValidation
Required fields
We should handle optional fields as well, i.e. those not specified in the
requiredfield of the schema.