JSON Schema Draft 2020-12 Properties Define Number Maximum Error (Edit)

Schema properties that are of the type number should have a maximum property defined

JSON SchemaSchemaPropertiesTypes

Rule Definition

json-schema-2020-12-properties-define-number-maximum-error.yaml
{"json-schema-2020-12-properties-define-number-maximum-error":{"description":"Schema properties that are of the type number should have a maximum property defined","message":"Schema Number Properties MUST Have Maximum","severity":"error","given":"$.properties[?(@.type==\"number\")]","then":[{"field":"maximum","function":"defined"}]}}

Back to All of the Rules