JSON Schema Draft 2020-12 ID Source URL Error (Edit)

The $id property in any JSON Schema MUST contain a valid URL pointing to a central registry, repository, or another authoritative source for the object. This URL ensures that the object's source is always accessible and can be used for proper validation.

JSON SchemaMetadataIdentifiers

Rule Definition

json-schema-2020-12-id-source-url-error.yaml
{"json-schema-2020-12-id-source-url-error":{"description":"The $id property in any JSON Schema MUST contain a valid URL pointing to a central registry, repository, or another authoritative source for the object. This URL ensures that the object's source is always accessible and can be used for proper validation.","given":"$","severity":"error","then":{"field":"$id","function":"pattern","functionOptions":{"match":"\\b(example.com)\\b"}}}}

Back to All of the Rules