JSON Schema Draft 2020-12 Title Pascal Case Info (Edit)

The name of a JSON Schema object should always be in PascalCase to ensure readability and consistency across APIs. Using PascalCase helps maintain uniformity and aligns the object's name with its plain-language title.

JSON SchemaMetadata

Rule Definition

json-schema-2020-12-title-pascal-case-info.yaml
{"json-schema-2020-12-title-pascal-case-info":{"description":"The name of a JSON Schema object should always be in PascalCase to ensure readability and consistency across APIs. Using PascalCase helps maintain uniformity and aligns the object's name with its plain-language title.","given":"$","severity":"error","then":[{"field":"title","function":"pattern","functionOptions":{"notMatch":"^[A-Z](([a-z]+[A-Z]?)*)$"}},{"field":"title","function":"pattern","functionOptions":{"notMatch":"^[A-Z](([a-z0-9]+[A-Z]?)*)$"}}]}}

Back to All of the Rules