Skip to content

Commit 7a3d06d

Browse files
committed
I remove a test that doesn't make sense.
1 parent e8bf453 commit 7a3d06d

File tree

6 files changed

+0
-192
lines changed

6 files changed

+0
-192
lines changed

tests/draft-next/optional/anchor.json

-32
Original file line numberDiff line numberDiff line change
@@ -56,37 +56,5 @@
5656
"valid": false
5757
}
5858
]
59-
},
60-
{
61-
"description": "non-schema object containing an $anchor property",
62-
"schema": {
63-
"$schema": "https://json-schema.org/draft/next/schema",
64-
"$defs": {
65-
"const_not_anchor": {
66-
"const": {
67-
"$anchor": "not_a_real_anchor"
68-
}
69-
}
70-
},
71-
"if": {
72-
"const": "skip not_a_real_anchor"
73-
},
74-
"then": true,
75-
"else" : {
76-
"$ref": "#/$defs/const_not_anchor"
77-
}
78-
},
79-
"tests": [
80-
{
81-
"description": "skip traversing definition for a valid result",
82-
"data": "skip not_a_real_anchor",
83-
"valid": true
84-
},
85-
{
86-
"description": "const at const_not_anchor does not match",
87-
"data": 1,
88-
"valid": false
89-
}
90-
]
9159
}
9260
]

tests/draft-next/optional/id.json

-32
Original file line numberDiff line numberDiff line change
@@ -49,37 +49,5 @@
4949
"valid": false
5050
}
5151
]
52-
},
53-
{
54-
"description": "non-schema object containing an $id property",
55-
"schema": {
56-
"$schema": "https://json-schema.org/draft/next/schema",
57-
"$defs": {
58-
"const_not_id": {
59-
"const": {
60-
"$id": "not_a_real_id"
61-
}
62-
}
63-
},
64-
"if": {
65-
"const": "skip not_a_real_id"
66-
},
67-
"then": true,
68-
"else" : {
69-
"$ref": "#/$defs/const_not_id"
70-
}
71-
},
72-
"tests": [
73-
{
74-
"description": "skip traversing definition for a valid result",
75-
"data": "skip not_a_real_id",
76-
"valid": true
77-
},
78-
{
79-
"description": "const at const_not_id does not match",
80-
"data": 1,
81-
"valid": false
82-
}
83-
]
8452
}
8553
]

tests/draft2019-09/optional/anchor.json

-32
Original file line numberDiff line numberDiff line change
@@ -56,37 +56,5 @@
5656
"valid": false
5757
}
5858
]
59-
},
60-
{
61-
"description": "non-schema object containing an $anchor property",
62-
"schema": {
63-
"$schema": "https://json-schema.org/draft/2019-09/schema",
64-
"$defs": {
65-
"const_not_anchor": {
66-
"const": {
67-
"$anchor": "not_a_real_anchor"
68-
}
69-
}
70-
},
71-
"if": {
72-
"const": "skip not_a_real_anchor"
73-
},
74-
"then": true,
75-
"else" : {
76-
"$ref": "#/$defs/const_not_anchor"
77-
}
78-
},
79-
"tests": [
80-
{
81-
"description": "skip traversing definition for a valid result",
82-
"data": "skip not_a_real_anchor",
83-
"valid": true
84-
},
85-
{
86-
"description": "const at const_not_anchor does not match",
87-
"data": 1,
88-
"valid": false
89-
}
90-
]
9159
}
9260
]

tests/draft2019-09/optional/id.json

-32
Original file line numberDiff line numberDiff line change
@@ -49,37 +49,5 @@
4949
"valid": false
5050
}
5151
]
52-
},
53-
{
54-
"description": "non-schema object containing an $id property",
55-
"schema": {
56-
"$schema": "https://json-schema.org/draft/2019-09/schema",
57-
"$defs": {
58-
"const_not_id": {
59-
"const": {
60-
"$id": "not_a_real_id"
61-
}
62-
}
63-
},
64-
"if": {
65-
"const": "skip not_a_real_id"
66-
},
67-
"then": true,
68-
"else" : {
69-
"$ref": "#/$defs/const_not_id"
70-
}
71-
},
72-
"tests": [
73-
{
74-
"description": "skip traversing definition for a valid result",
75-
"data": "skip not_a_real_id",
76-
"valid": true
77-
},
78-
{
79-
"description": "const at const_not_id does not match",
80-
"data": 1,
81-
"valid": false
82-
}
83-
]
8452
}
8553
]

tests/draft2020-12/optional/anchor.json

-32
Original file line numberDiff line numberDiff line change
@@ -56,37 +56,5 @@
5656
"valid": false
5757
}
5858
]
59-
},
60-
{
61-
"description": "non-schema object containing an $anchor property",
62-
"schema": {
63-
"$schema": "https://json-schema.org/draft/2020-12/schema",
64-
"$defs": {
65-
"const_not_anchor": {
66-
"const": {
67-
"$anchor": "not_a_real_anchor"
68-
}
69-
}
70-
},
71-
"if": {
72-
"const": "skip not_a_real_anchor"
73-
},
74-
"then": true,
75-
"else" : {
76-
"$ref": "#/$defs/const_not_anchor"
77-
}
78-
},
79-
"tests": [
80-
{
81-
"description": "skip traversing definition for a valid result",
82-
"data": "skip not_a_real_anchor",
83-
"valid": true
84-
},
85-
{
86-
"description": "const at const_not_anchor does not match",
87-
"data": 1,
88-
"valid": false
89-
}
90-
]
9159
}
9260
]

tests/draft2020-12/optional/id.json

-32
Original file line numberDiff line numberDiff line change
@@ -49,37 +49,5 @@
4949
"valid": false
5050
}
5151
]
52-
},
53-
{
54-
"description": "non-schema object containing an $id property",
55-
"schema": {
56-
"$schema": "https://json-schema.org/draft/2020-12/schema",
57-
"$defs": {
58-
"const_not_id": {
59-
"const": {
60-
"$id": "not_a_real_id"
61-
}
62-
}
63-
},
64-
"if": {
65-
"const": "skip not_a_real_id"
66-
},
67-
"then": true,
68-
"else" : {
69-
"$ref": "#/$defs/const_not_id"
70-
}
71-
},
72-
"tests": [
73-
{
74-
"description": "skip traversing definition for a valid result",
75-
"data": "skip not_a_real_id",
76-
"valid": true
77-
},
78-
{
79-
"description": "const at const_not_id does not match",
80-
"data": 1,
81-
"valid": false
82-
}
83-
]
8452
}
8553
]

0 commit comments

Comments
 (0)