Skip to content

Commit bf383b4

Browse files
fix: make identifiers unique across tests
1 parent 812f1f0 commit bf383b4

File tree

8 files changed

+36
-36
lines changed

8 files changed

+36
-36
lines changed

tests/draft2019-09/id.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,32 +211,32 @@
211211
"id_in_enum": {
212212
"enum": [
213213
{
214-
"$id": "https://localhost:1234/my_identifier.json",
214+
"$id": "https://localhost:1234/id/my_identifier.json",
215215
"type": "null"
216216
}
217217
]
218218
},
219219
"real_id_in_schema": {
220-
"$id": "https://localhost:1234/my_identifier.json",
220+
"$id": "https://localhost:1234/id/my_identifier.json",
221221
"type": "string"
222222
},
223223
"zzz_id_in_const": {
224224
"const": {
225-
"$id": "https://localhost:1234/my_identifier.json",
225+
"$id": "https://localhost:1234/id/my_identifier.json",
226226
"type": "null"
227227
}
228228
}
229229
},
230230
"anyOf": [
231231
{ "$ref": "#/$defs/id_in_enum" },
232-
{ "$ref": "https://localhost:1234/my_identifier.json" }
232+
{ "$ref": "https://localhost:1234/id/my_identifier.json" }
233233
]
234234
},
235235
"tests": [
236236
{
237237
"description": "exact match to enum, and type matches",
238238
"data": {
239-
"$id": "https://localhost:1234/my_identifier.json",
239+
"$id": "https://localhost:1234/id/my_identifier.json",
240240
"type": "null"
241241
},
242242
"valid": true

tests/draft2019-09/unknownKeyword.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@
88
"not": {
99
"array_of_schemas": [
1010
{
11-
"$id": "https://localhost:1234/my_identifier.json",
11+
"$id": "https://localhost:1234/unknownKeyword/my_identifier.json",
1212
"type": "null"
1313
}
1414
]
1515
}
1616
},
1717
"real_id_in_schema": {
18-
"$id": "https://localhost:1234/my_identifier.json",
18+
"$id": "https://localhost:1234/unknownKeyword/my_identifier.json",
1919
"type": "string"
2020
},
2121
"id_in_unknown1": {
2222
"not": {
2323
"object_of_schemas": {
2424
"foo": {
25-
"$id": "https://localhost:1234/my_identifier.json",
25+
"$id": "https://localhost:1234/unknownKeyword/my_identifier.json",
2626
"type": "integer"
2727
}
2828
}
@@ -32,7 +32,7 @@
3232
"anyOf": [
3333
{ "$ref": "#/$defs/id_in_unknown0" },
3434
{ "$ref": "#/$defs/id_in_unknown1" },
35-
{ "$ref": "https://localhost:1234/my_identifier.json" }
35+
{ "$ref": "https://localhost:1234/unknownKeyword/my_identifier.json" }
3636
]
3737
},
3838
"tests": [

tests/draft2020-12/id.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,32 +213,32 @@
213213
"id_in_enum": {
214214
"enum": [
215215
{
216-
"$id": "https://localhost:1234/my_identifier.json",
216+
"$id": "https://localhost:1234/id/my_identifier.json",
217217
"type": "null"
218218
}
219219
]
220220
},
221221
"real_id_in_schema": {
222-
"$id": "https://localhost:1234/my_identifier.json",
222+
"$id": "https://localhost:1234/id/my_identifier.json",
223223
"type": "string"
224224
},
225225
"zzz_id_in_const": {
226226
"const": {
227-
"$id": "https://localhost:1234/my_identifier.json",
227+
"$id": "https://localhost:1234/id/my_identifier.json",
228228
"type": "null"
229229
}
230230
}
231231
},
232232
"anyOf": [
233233
{ "$ref": "#/$defs/id_in_enum" },
234-
{ "$ref": "https://localhost:1234/my_identifier.json" }
234+
{ "$ref": "https://localhost:1234/id/my_identifier.json" }
235235
]
236236
},
237237
"tests": [
238238
{
239239
"description": "exact match to enum, and type matches",
240240
"data": {
241-
"$id": "https://localhost:1234/my_identifier.json",
241+
"$id": "https://localhost:1234/id/my_identifier.json",
242242
"type": "null"
243243
},
244244
"valid": true

tests/draft2020-12/unknownKeyword.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@
88
"not": {
99
"array_of_schemas": [
1010
{
11-
"$id": "https://localhost:1234/my_identifier.json",
11+
"$id": "https://localhost:1234/unknownKeyword/my_identifier.json",
1212
"type": "null"
1313
}
1414
]
1515
}
1616
},
1717
"real_id_in_schema": {
18-
"$id": "https://localhost:1234/my_identifier.json",
18+
"$id": "https://localhost:1234/unknownKeyword/my_identifier.json",
1919
"type": "string"
2020
},
2121
"id_in_unknown1": {
2222
"not": {
2323
"object_of_schemas": {
2424
"foo": {
25-
"$id": "https://localhost:1234/my_identifier.json",
25+
"$id": "https://localhost:1234/unknownKeyword/my_identifier.json",
2626
"type": "integer"
2727
}
2828
}
@@ -32,7 +32,7 @@
3232
"anyOf": [
3333
{ "$ref": "#/$defs/id_in_unknown0" },
3434
{ "$ref": "#/$defs/id_in_unknown1" },
35-
{ "$ref": "https://localhost:1234/my_identifier.json" }
35+
{ "$ref": "https://localhost:1234/unknownKeyword/my_identifier.json" }
3636
]
3737
},
3838
"tests": [

tests/draft6/id.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,32 @@
77
"id_in_enum": {
88
"enum": [
99
{
10-
"$id": "https://localhost:1234/my_identifier.json",
10+
"$id": "https://localhost:1234/id/my_identifier.json",
1111
"type": "null"
1212
}
1313
]
1414
},
1515
"real_id_in_schema": {
16-
"$id": "https://localhost:1234/my_identifier.json",
16+
"$id": "https://localhost:1234/id/my_identifier.json",
1717
"type": "string"
1818
},
1919
"zzz_id_in_const": {
2020
"const": {
21-
"$id": "https://localhost:1234/my_identifier.json",
21+
"$id": "https://localhost:1234/id/my_identifier.json",
2222
"type": "null"
2323
}
2424
}
2525
},
2626
"anyOf": [
2727
{ "$ref": "#/definitions/id_in_enum" },
28-
{ "$ref": "https://localhost:1234/my_identifier.json" }
28+
{ "$ref": "https://localhost:1234/id/my_identifier.json" }
2929
]
3030
},
3131
"tests": [
3232
{
3333
"description": "exact match to enum, and type matches",
3434
"data": {
35-
"$id": "https://localhost:1234/my_identifier.json",
35+
"$id": "https://localhost:1234/id/my_identifier.json",
3636
"type": "null"
3737
},
3838
"valid": true

tests/draft6/unknownKeyword.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@
88
"not": {
99
"array_of_schemas": [
1010
{
11-
"$id": "https://localhost:1234/my_identifier.json",
11+
"$id": "https://localhost:1234/unknownKeyword/my_identifier.json",
1212
"type": "null"
1313
}
1414
]
1515
}
1616
},
1717
"real_id_in_schema": {
18-
"$id": "https://localhost:1234/my_identifier.json",
18+
"$id": "https://localhost:1234/unknownKeyword/my_identifier.json",
1919
"type": "string"
2020
},
2121
"id_in_unknown1": {
2222
"not": {
2323
"object_of_schemas": {
2424
"foo": {
25-
"$id": "https://localhost:1234/my_identifier.json",
25+
"$id": "https://localhost:1234/unknownKeyword/my_identifier.json",
2626
"type": "integer"
2727
}
2828
}
@@ -32,7 +32,7 @@
3232
"anyOf": [
3333
{ "$ref": "#/$defs/id_in_unknown0" },
3434
{ "$ref": "#/$defs/id_in_unknown1" },
35-
{ "$ref": "https://localhost:1234/my_identifier.json" }
35+
{ "$ref": "https://localhost:1234/unknownKeyword/my_identifier.json" }
3636
]
3737
},
3838
"tests": [

tests/draft7/id.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,32 @@
77
"id_in_enum": {
88
"enum": [
99
{
10-
"$id": "https://localhost:1234/my_identifier.json",
10+
"$id": "https://localhost:1234/id/my_identifier.json",
1111
"type": "null"
1212
}
1313
]
1414
},
1515
"real_id_in_schema": {
16-
"$id": "https://localhost:1234/my_identifier.json",
16+
"$id": "https://localhost:1234/id/my_identifier.json",
1717
"type": "string"
1818
},
1919
"zzz_id_in_const": {
2020
"const": {
21-
"$id": "https://localhost:1234/my_identifier.json",
21+
"$id": "https://localhost:1234/id/my_identifier.json",
2222
"type": "null"
2323
}
2424
}
2525
},
2626
"anyOf": [
2727
{ "$ref": "#/definitions/id_in_enum" },
28-
{ "$ref": "https://localhost:1234/my_identifier.json" }
28+
{ "$ref": "https://localhost:1234/id/my_identifier.json" }
2929
]
3030
},
3131
"tests": [
3232
{
3333
"description": "exact match to enum, and type matches",
3434
"data": {
35-
"$id": "https://localhost:1234/my_identifier.json",
35+
"$id": "https://localhost:1234/id/my_identifier.json",
3636
"type": "null"
3737
},
3838
"valid": true

tests/draft7/unknownKeyword.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@
88
"not": {
99
"array_of_schemas": [
1010
{
11-
"$id": "https://localhost:1234/my_identifier.json",
11+
"$id": "https://localhost:1234/unknownKeyword/my_identifier.json",
1212
"type": "null"
1313
}
1414
]
1515
}
1616
},
1717
"real_id_in_schema": {
18-
"$id": "https://localhost:1234/my_identifier.json",
18+
"$id": "https://localhost:1234/unknownKeyword/my_identifier.json",
1919
"type": "string"
2020
},
2121
"id_in_unknown1": {
2222
"not": {
2323
"object_of_schemas": {
2424
"foo": {
25-
"$id": "https://localhost:1234/my_identifier.json",
25+
"$id": "https://localhost:1234/unknownKeyword/my_identifier.json",
2626
"type": "integer"
2727
}
2828
}
@@ -32,7 +32,7 @@
3232
"anyOf": [
3333
{ "$ref": "#/$defs/id_in_unknown0" },
3434
{ "$ref": "#/$defs/id_in_unknown1" },
35-
{ "$ref": "https://localhost:1234/my_identifier.json" }
35+
{ "$ref": "https://localhost:1234/unknownKeyword/my_identifier.json" }
3636
]
3737
},
3838
"tests": [

0 commit comments

Comments
 (0)