diff --git a/tests/draft2020-12/unevaluatedItems.json b/tests/draft2020-12/unevaluatedItems.json index 00617695..263aba67 100644 --- a/tests/draft2020-12/unevaluatedItems.json +++ b/tests/draft2020-12/unevaluatedItems.json @@ -593,5 +593,33 @@ "valid": false } ] + }, + { + "description": "unevaluatedItems on non-applicable type", + "schema": { + "unevaluatedItems": false + }, + "tests": [ + { + "description": "null is not applicable", + "data": null, + "valid": true + }, + { + "description": "number is not applicable", + "data": 42, + "valid": true + }, + { + "description": "string is not applicable", + "data": "foo", + "valid": true + }, + { + "description": "object is not applicable", + "data": {}, + "valid": true + } + ] } ] diff --git a/tests/draft2020-12/unevaluatedProperties.json b/tests/draft2020-12/unevaluatedProperties.json index 7cb56bdd..df541d34 100644 --- a/tests/draft2020-12/unevaluatedProperties.json +++ b/tests/draft2020-12/unevaluatedProperties.json @@ -1307,5 +1307,33 @@ "valid": false } ] + }, + { + "description": "unevaluatedProperties on non-applicable type", + "schema": { + "unevaluatedProperties": false + }, + "tests": [ + { + "description": "null is not applicable", + "data": null, + "valid": true + }, + { + "description": "number is not applicable", + "data": 42, + "valid": true + }, + { + "description": "string is not applicable", + "data": "foo", + "valid": true + }, + { + "description": "array is not applicable", + "data": [], + "valid": true + } + ] } ]