JSON Schema Draft 2020-12 Properties Enum Casing Error (Edit)

Schema property enumerators are consistent casing, keeping all entries upper snake case, and consistent across all APIs

JSON SchemaSchemaPropertiesEnumerators

Rule Definition

json-schema-2020-12-properties-enum-casing-error.yaml
{"json-schema-2020-12-properties-enum-casing-error":{"description":"Schema property enumerators are consistent casing, keeping all entries upper snake case, and consistent across all APIs","message":"Schema Property Enum MUST Be Upper Snake Case","severity":"error","given":"$.properties.*.enum.*","then":{"function":"pattern","functionOptions":{"match":"^[A-Z]+(?:_[A-Z]+)*$"}}}}

Back to All of the Rules