Skip to content

Commit

Permalink
Add test for unevaluatedProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
V02460 committed Nov 20, 2024
1 parent 82a0774 commit 7dfbb1e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/draft2020-12/unevaluatedProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,31 @@
}
]
},
{
"description": "unevaluatedProperties with non-bool additionalProperties",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": { "type": "string" },
"unevaluatedProperties": false
},
"tests": [
{
"description": "with only valid additional properties",
"data": {
"foo": "foo"
},
"valid": true
},
{
"description": "with invalid additional properties",
"data": {
"foo": "foo",
"bar": 1
},
"valid": false
}
]
},
{
"description": "unevaluatedProperties with nested properties",
"schema": {
Expand Down

0 comments on commit 7dfbb1e

Please sign in to comment.