JSON Schema Draft 2020-12 Type Info (Edit)

JSON Schema objects should explicitly define their type, ensuring clarity about each object's structure. This allows tools utilizing the schema to accurately validate the object wherever it is applied.

JSON SchemaMetadata

Rule Definition

json-schema-2020-12-type-info.yaml
{"json-schema-2020-12-type-info":{"description":"JSON Schema objects should explicitly define their type, ensuring clarity about each object's structure. This allows tools utilizing the schema to accurately validate the object wherever it is applied.","given":"$","severity":"error","then":{"field":"type","function":"falsy"}}}

Back to All of the Rules