Skip to content

Commit 604f5f9

Browse files
notEthanjdesrosiers
authored andcommitted
Drop tests of $id and $anchor that just test values against meta-schema pattern for those properties
1 parent bf0360f commit 604f5f9

File tree

8 files changed

+0
-737
lines changed

8 files changed

+0
-737
lines changed

tests/draft-next/anchor.json

-24
Original file line numberDiff line numberDiff line change
@@ -116,29 +116,5 @@
116116
"valid": false
117117
}
118118
]
119-
},
120-
{
121-
"description": "invalid anchors",
122-
"schema": {
123-
"$schema": "https://json-schema.org/draft/next/schema",
124-
"$ref": "https://json-schema.org/draft/next/schema"
125-
},
126-
"tests": [
127-
{
128-
"description": "MUST start with a letter (and not #)",
129-
"data": { "$anchor" : "#foo" },
130-
"valid": false
131-
},
132-
{
133-
"description": "JSON pointers are not valid",
134-
"data": { "$anchor" : "/a/b" },
135-
"valid": false
136-
},
137-
{
138-
"description": "invalid with valid beginning",
139-
"data": { "$anchor" : "foo#something" },
140-
"valid": false
141-
}
142-
]
143119
}
144120
]

tests/draft-next/id.json

-211
This file was deleted.

tests/draft2019-09/anchor.json

-25
Original file line numberDiff line numberDiff line change
@@ -116,30 +116,5 @@
116116
"valid": false
117117
}
118118
]
119-
},
120-
{
121-
"description": "invalid anchors",
122-
"comment": "Section 8.2.3",
123-
"schema": {
124-
"$schema": "https://json-schema.org/draft/2019-09/schema",
125-
"$ref": "https://json-schema.org/draft/2019-09/schema"
126-
},
127-
"tests": [
128-
{
129-
"description": "MUST start with a letter (and not #)",
130-
"data": { "$anchor" : "#foo" },
131-
"valid": false
132-
},
133-
{
134-
"description": "JSON pointers are not valid",
135-
"data": { "$anchor" : "/a/b" },
136-
"valid": false
137-
},
138-
{
139-
"description": "invalid with valid beginning",
140-
"data": { "$anchor" : "foo#something" },
141-
"valid": false
142-
}
143-
]
144119
}
145120
]

0 commit comments

Comments
 (0)