From 7effae004f7da740c8364e63f6d74375c3ba5370 Mon Sep 17 00:00:00 2001 From: Greg Dennis Date: Sun, 21 Sep 2025 17:22:39 +1200 Subject: [PATCH 1/2] require that $schema cannot contain a fragment --- specs/jsonschema-core.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/jsonschema-core.md b/specs/jsonschema-core.md index 510300b8..c3e260cf 100644 --- a/specs/jsonschema-core.md +++ b/specs/jsonschema-core.md @@ -957,8 +957,8 @@ resources, unless such a resource itself declares a different dialect by including the `$schema` keyword with a different value. The value of this keyword MUST be an -[IRI](https://www.rfc-editor.org/info/rfc3987) (containing a scheme) and this -IRI MUST be normalized. +[IRI](https://www.rfc-editor.org/info/rfc3987) (containing a scheme). This +IRI MUST be normalized and MUST NOT contain a fragment. If this IRI identifies a retrievable resource, that resource SHOULD be of media type `application/schema+json`. From ee05ce21b311d26bed3b0939c0c2a8ed22f3baf7 Mon Sep 17 00:00:00 2001 From: Greg Dennis Date: Mon, 22 Dec 2025 08:02:05 +1300 Subject: [PATCH 2/2] Update specs/jsonschema-core.md Co-authored-by: Jason Desrosiers --- specs/jsonschema-core.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/jsonschema-core.md b/specs/jsonschema-core.md index c3e260cf..cb8598a4 100644 --- a/specs/jsonschema-core.md +++ b/specs/jsonschema-core.md @@ -957,8 +957,8 @@ resources, unless such a resource itself declares a different dialect by including the `$schema` keyword with a different value. The value of this keyword MUST be an -[IRI](https://www.rfc-editor.org/info/rfc3987) (containing a scheme). This -IRI MUST be normalized and MUST NOT contain a fragment. +[absolute IRI](https://www.rfc-editor.org/info/rfc3987) (without a fragment). This +IRI MUST be normalized. If this IRI identifies a retrievable resource, that resource SHOULD be of media type `application/schema+json`.