Skip to content

Commit a5bef77

Browse files
committed
draft-next drop tests asserting empty fragments in $id are valid
Per json-schema-org/json-schema-spec#1291
1 parent b41167c commit a5bef77

File tree

1 file changed

+0
-67
lines changed

1 file changed

+0
-67
lines changed

tests/draft-next/id.json

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -107,48 +107,6 @@
107107
}
108108
]
109109
},
110-
{
111-
"description": "Valid use of empty fragments in location-independent $id",
112-
"comment": "These are allowed but discouraged",
113-
"schema": {
114-
"$schema": "https://json-schema.org/draft/next/schema",
115-
"$ref": "https://json-schema.org/draft/next/schema"
116-
},
117-
"tests": [
118-
{
119-
"description": "Identifier name with absolute URI",
120-
"data": {
121-
"$ref": "http://localhost:1234/draft-next/bar",
122-
"$defs": {
123-
"A": {
124-
"$id": "http://localhost:1234/draft-next/bar#",
125-
"type": "integer"
126-
}
127-
}
128-
},
129-
"valid": true
130-
},
131-
{
132-
"description": "Identifier name with base URI change in subschema",
133-
"data": {
134-
"$id": "http://localhost:1234/draft-next/root",
135-
"$ref": "http://localhost:1234/draft-next/nested.json#/$defs/B",
136-
"$defs": {
137-
"A": {
138-
"$id": "nested.json",
139-
"$defs": {
140-
"B": {
141-
"$id": "#",
142-
"type": "integer"
143-
}
144-
}
145-
}
146-
}
147-
},
148-
"valid": true
149-
}
150-
]
151-
},
152110
{
153111
"description": "Unnormalized $ids are allowed but discouraged",
154112
"schema": {
@@ -180,31 +138,6 @@
180138
}
181139
},
182140
"valid": true
183-
},
184-
{
185-
"description": "Unnormalized identifier with empty fragment",
186-
"data": {
187-
"$ref": "http://localhost:1234/draft-next/foo/baz",
188-
"$defs": {
189-
"A": {
190-
"$id": "http://localhost:1234/draft-next/foo/bar/../baz#",
191-
"type": "integer"
192-
}
193-
}
194-
},
195-
"valid": true
196-
},
197-
{
198-
"description": "Unnormalized identifier with empty fragment and no ref",
199-
"data": {
200-
"$defs": {
201-
"A": {
202-
"$id": "http://localhost:1234/draft-next/foo/bar/../baz#",
203-
"type": "integer"
204-
}
205-
}
206-
},
207-
"valid": true
208141
}
209142
]
210143
}

0 commit comments

Comments
 (0)