diff options
Diffstat (limited to 'json/tests/draft-next/unevaluatedProperties.json')
-rw-r--r-- | json/tests/draft-next/unevaluatedProperties.json | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/json/tests/draft-next/unevaluatedProperties.json b/json/tests/draft-next/unevaluatedProperties.json index bfcb79d..e7865d1 100644 --- a/json/tests/draft-next/unevaluatedProperties.json +++ b/json/tests/draft-next/unevaluatedProperties.json @@ -1356,5 +1356,41 @@ "valid": false } ] + }, + { + "description": "non-object instances are valid", + "schema": {"unevaluatedProperties": false}, + "tests": [ + { + "description": "ignores booleans", + "data": true, + "valid": true + }, + { + "description": "ignores integers", + "data": 123, + "valid": true + }, + { + "description": "ignores floats", + "data": 1.0, + "valid": true + }, + { + "description": "ignores arrays", + "data": [], + "valid": true + }, + { + "description": "ignores strings", + "data": "foo", + "valid": true + }, + { + "description": "ignores null", + "data": null, + "valid": true + } + ] } ] |