From 675186ba23de77d0ff055b2251caee7104391bc6 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Fri, 6 Jun 2025 12:06:22 -0400 Subject: [PATCH 1/2] Take into account `$id` for annotation schema location assertions Signed-off-by: Juan Cruz Viotti --- annotations/tests/content.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/annotations/tests/content.json b/annotations/tests/content.json index 07c17a69..f6b4c2cc 100644 --- a/annotations/tests/content.json +++ b/annotations/tests/content.json @@ -80,7 +80,7 @@ "location": "", "keyword": "contentSchema", "expected": { - "#": { "type": "number" } + "https://annotations.json-schema.org/test/contentSchema-is-an-annotation#": { "type": "number" } } } ] From 72c670b0ac5c1741ca9038fd265e3ffa42c064cd Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Fri, 6 Jun 2025 13:53:23 -0400 Subject: [PATCH 2/2] Delete identifiers in Content annotation tests Signed-off-by: Juan Cruz Viotti --- annotations/tests/content.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/annotations/tests/content.json b/annotations/tests/content.json index f6b4c2cc..ad500603 100644 --- a/annotations/tests/content.json +++ b/annotations/tests/content.json @@ -68,7 +68,6 @@ "description": "`contentSchema` is an annotation for string instances", "compatibility": "2019", "schema": { - "$id": "https://annotations.json-schema.org/test/contentSchema-is-an-annotation", "contentMediaType": "application/json", "contentSchema": { "type": "number" } }, @@ -80,7 +79,7 @@ "location": "", "keyword": "contentSchema", "expected": { - "https://annotations.json-schema.org/test/contentSchema-is-an-annotation#": { "type": "number" } + "#": { "type": "number" } } } ] @@ -101,7 +100,6 @@ "description": "`contentSchema` requires `contentMediaType`", "compatibility": "2019", "schema": { - "$id": "https://annotations.json-schema.org/test/contentSchema-is-an-annotation", "contentSchema": { "type": "number" } }, "tests": [