From a5bef779faab0750f9e50d27fd3c10382ff501c1 Mon Sep 17 00:00:00 2001 From: Ethan Date: Wed, 31 Jan 2024 13:51:26 -0800 Subject: [PATCH] `draft-next` drop tests asserting empty fragments in $id are valid Per https://github.com/json-schema-org/json-schema-spec/pull/1291 --- tests/draft-next/id.json | 67 ---------------------------------------- 1 file changed, 67 deletions(-) diff --git a/tests/draft-next/id.json b/tests/draft-next/id.json index fe74c6bf..a0f7942c 100644 --- a/tests/draft-next/id.json +++ b/tests/draft-next/id.json @@ -107,48 +107,6 @@ } ] }, - { - "description": "Valid use of empty fragments in location-independent $id", - "comment": "These are allowed but discouraged", - "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$ref": "https://json-schema.org/draft/next/schema" - }, - "tests": [ - { - "description": "Identifier name with absolute URI", - "data": { - "$ref": "http://localhost:1234/draft-next/bar", - "$defs": { - "A": { - "$id": "http://localhost:1234/draft-next/bar#", - "type": "integer" - } - } - }, - "valid": true - }, - { - "description": "Identifier name with base URI change in subschema", - "data": { - "$id": "http://localhost:1234/draft-next/root", - "$ref": "http://localhost:1234/draft-next/nested.json#/$defs/B", - "$defs": { - "A": { - "$id": "nested.json", - "$defs": { - "B": { - "$id": "#", - "type": "integer" - } - } - } - } - }, - "valid": true - } - ] - }, { "description": "Unnormalized $ids are allowed but discouraged", "schema": { @@ -180,31 +138,6 @@ } }, "valid": true - }, - { - "description": "Unnormalized identifier with empty fragment", - "data": { - "$ref": "http://localhost:1234/draft-next/foo/baz", - "$defs": { - "A": { - "$id": "http://localhost:1234/draft-next/foo/bar/../baz#", - "type": "integer" - } - } - }, - "valid": true - }, - { - "description": "Unnormalized identifier with empty fragment and no ref", - "data": { - "$defs": { - "A": { - "$id": "http://localhost:1234/draft-next/foo/bar/../baz#", - "type": "integer" - } - } - }, - "valid": true } ] }