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

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

JSON SchemaSchemaPropertiesTypes

Rule Definition

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

Back to All of the Rules