JSON Schema Draft 2020-12 Properties String Maxlength Error (Edit)

Schema properties that are of the string type have the max length applied defining the shape of the property

JSON SchemaSchemaPropertiesTypes

Rule Definition

json-schema-2020-12-properties-string-maxlength-error.yaml
{"json-schema-2020-12-properties-string-maxlength-error":{"description":"Schema properties that are of the string type have the max length applied defining the shape of the property","message":"Schema String Properties MUST Have Maximum Length","severity":"error","given":"$properties[?(@.type == 'string')]","then":{"field":"maxLength","function":"truthy"}}}

Back to All of the Rules