Skip to content

Commit

Permalink
Drop tests of $id and $anchor that just test values against meta-…
Browse files Browse the repository at this point in the history
…schema `pattern` for those properties
  • Loading branch information
notEthan authored and jdesrosiers committed Mar 31, 2024
1 parent bf0360f commit 604f5f9
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 737 deletions.
24 changes: 0 additions & 24 deletions tests/draft-next/anchor.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,29 +116,5 @@
"valid": false
}
]
},
{
"description": "invalid anchors",
"schema": {
"$schema": "https://json-schema.org/draft/next/schema",
"$ref": "https://json-schema.org/draft/next/schema"
},
"tests": [
{
"description": "MUST start with a letter (and not #)",
"data": { "$anchor" : "#foo" },
"valid": false
},
{
"description": "JSON pointers are not valid",
"data": { "$anchor" : "/a/b" },
"valid": false
},
{
"description": "invalid with valid beginning",
"data": { "$anchor" : "foo#something" },
"valid": false
}
]
}
]
211 changes: 0 additions & 211 deletions tests/draft-next/id.json

This file was deleted.

25 changes: 0 additions & 25 deletions tests/draft2019-09/anchor.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,30 +116,5 @@
"valid": false
}
]
},
{
"description": "invalid anchors",
"comment": "Section 8.2.3",
"schema": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$ref": "https://json-schema.org/draft/2019-09/schema"
},
"tests": [
{
"description": "MUST start with a letter (and not #)",
"data": { "$anchor" : "#foo" },
"valid": false
},
{
"description": "JSON pointers are not valid",
"data": { "$anchor" : "/a/b" },
"valid": false
},
{
"description": "invalid with valid beginning",
"data": { "$anchor" : "foo#something" },
"valid": false
}
]
}
]
Loading

0 comments on commit 604f5f9

Please sign in to comment.