maxLength : Integer

maxLength

Integer

A string instance is valid against this keyword if its length is less than, or equal to, the value of this keyword.

Kind Assertion
Applies To String
Dialect 2020-12
Introduced In Draft 1
Vocabulary Validation
Specification https://json-schema.org/draft/2020-12/json-schema-validation.html#section-6.3.1
Metaschema https://json-schema.org/draft/2020-12/meta/validation
Also see