json-schema-spec icon indicating copy to clipboard operation
json-schema-spec copied to clipboard

$schema introduces specification-level circular dependency

Open mathematikoi opened this issue 8 months ago • 12 comments

The value of this keyword MUST be a URI [RFC3986] (containing a scheme) and this URI MUST be normalized. The current schema MUST be valid against the meta-schema identified by this URI.

case: a schema where $id equals $schema

the fact that a schema MUST be valid according to its meta-schema, goes on forever! especially if a "validation session" considers a schema and its meta-schema with no further context.

should this be a legitimate concern for implementations looking to be FULLY compliant with the spec?

mathematikoi avatar Jun 18 '24 18:06 mathematikoi