Skip to content

Commit e1dbaeb

Browse files
authored
Merge pull request #562 from json-schema-org/remove-conditional-id-tests-from-draft6
remove conditional $id tests from draft 6
2 parents d3f5cd4 + 5aff83e commit e1dbaeb

File tree

1 file changed

+34
-14
lines changed

1 file changed

+34
-14
lines changed

tests/draft6/id.json

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,23 @@
5959
}
6060
}
6161
},
62-
"if": {
63-
"const": "skip not_a_real_anchor"
64-
},
65-
"then": true,
66-
"else" : {
67-
"$ref": "#/$defs/const_not_anchor"
68-
}
62+
"oneOf": [
63+
{
64+
"const": "skip not_a_real_anchor"
65+
},
66+
{
67+
"allOf": [
68+
{
69+
"not": {
70+
"const": "skip not_a_real_anchor"
71+
}
72+
},
73+
{
74+
"$ref": "#/$defs/const_not_anchor"
75+
}
76+
]
77+
}
78+
]
6979
},
7080
"tests": [
7181
{
@@ -90,13 +100,23 @@
90100
}
91101
}
92102
},
93-
"if": {
94-
"const": "skip not_a_real_id"
95-
},
96-
"then": true,
97-
"else" : {
98-
"$ref": "#/$defs/const_not_id"
99-
}
103+
"oneOf": [
104+
{
105+
"const":"skip not_a_real_id"
106+
},
107+
{
108+
"allOf": [
109+
{
110+
"not": {
111+
"const": "skip not_a_real_id"
112+
}
113+
},
114+
{
115+
"$ref": "#/$defs/const_not_id"
116+
}
117+
]
118+
}
119+
]
100120
},
101121
"tests": [
102122
{

0 commit comments

Comments
 (0)