Skip to content

Commit

Permalink
Update unevaluted with dynamic ref to be more likely to catch errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesrosiers committed Oct 27, 2023
1 parent 2834c63 commit 8ba1c90
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions tests/draft2019-09/unevaluatedItems.json
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,9 @@
"items": [
{ "type": "number" },
{
"$recursiveRef": "#",
"unevaluatedItems": false
"$comment": "unevaluatedItems comes first so it's more likely to catch bugs with implementations that are sensitive to keyword ordering",
"unevaluatedItems": false,
"$recursiveRef": "#"
}
]
}
Expand Down
5 changes: 3 additions & 2 deletions tests/draft2019-09/unevaluatedProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,9 @@
"properties": {
"node": true,
"branches": {
"$recursiveRef": "#",
"unevaluatedProperties": false
"$comment": "unevaluatedProperties comes first so it's more likely to bugs errors with implementations that are sensitive to keyword ordering",
"unevaluatedProperties": false,
"$recursiveRef": "#"
}
},
"required": ["node"]
Expand Down
3 changes: 2 additions & 1 deletion tests/draft2020-12/unevaluatedItems.json
Original file line number Diff line number Diff line change
Expand Up @@ -480,12 +480,13 @@
"baseSchema": {
"$id": "/baseSchema",

"$comment": "unevaluatedItems comes first so it's more likely to catch bugs with implementations that are sensitive to keyword ordering",
"unevaluatedItems": false,
"type": "array",
"prefixItems": [
{ "type": "string" }
],
"$dynamicRef": "#addons",
"unevaluatedItems": false,

"$defs": {
"defaultAddons": {
Expand Down
3 changes: 2 additions & 1 deletion tests/draft2020-12/unevaluatedProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -733,12 +733,13 @@
"baseSchema": {
"$id": "/baseSchema",

"$comment": "unevaluatedProperties comes first so it's more likely to catch bugs with implementations that are sensitive to keyword ordering",
"unevaluatedProperties": false,
"type": "object",
"properties": {
"foo": { "type": "string" }
},
"$dynamicRef": "#addons",
"unevaluatedProperties": false,

"$defs": {
"defaultAddons": {
Expand Down

0 comments on commit 8ba1c90

Please sign in to comment.