JSON Schema Draft 2020-12 Properties Allowed Number Format Error (Edit)

Schema integer properties should have a format property with int32 or int64 applied

JSON SchemaSchemaPropertiesTypes

Rule Definition

json-schema-2020-12-properties-allowed-number-format-error.yaml
{"json-schema-2020-12-properties-allowed-number-format-error":{"description":"Schema integer properties should have a format property with int32 or int64 applied","message":"Schema Properties MUST Have Format","severity":"hint","given":"$.properties[?(@.type==\"number\")]","then":{"field":"format","function":"enumeration","functionOptions":{"values":["decimal32","decimal64","float","double","decimal128"]}}}}

Back to All of the Rules