JSON Schema Draft 2020-12 Properties Enum Casing Info (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-info.yaml
{"json-schema-2020-12-properties-enum-casing-info":{"description":"Schema property enumerators are consistent casing, keeping all entries upper snake case, and consistent across all APIs","message":"Schema Property Enum Are Upper Snake Case","severity":"error","given":"$.properties.*.enum.*","then":{"function":"pattern","functionOptions":{"notMatch":"^[A-Z]+(?:_[A-Z]+)*$"}}}}

Back to All of the Rules