diff options
Diffstat (limited to 'json/tests/draft2019-09/vocabulary.json')
-rw-r--r-- | json/tests/draft2019-09/vocabulary.json | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/json/tests/draft2019-09/vocabulary.json b/json/tests/draft2019-09/vocabulary.json new file mode 100644 index 0000000..982e673 --- /dev/null +++ b/json/tests/draft2019-09/vocabulary.json @@ -0,0 +1,38 @@ +[ + { + "description": "schema that uses custom metaschema with with no validation vocabulary", + "schema": { + "$id": "https://schema/using/no/validation", + "$schema": "http://localhost:1234/draft2019-09/metaschema-no-validation.json", + "properties": { + "badProperty": false, + "numberProperty": { + "minimum": 10 + } + } + }, + "tests": [ + { + "description": "applicator vocabulary still works", + "data": { + "badProperty": "this property should not exist" + }, + "valid": false + }, + { + "description": "no validation: valid number", + "data": { + "numberProperty": 20 + }, + "valid": true + }, + { + "description": "no validation: invalid number, but it still validates", + "data": { + "numberProperty": 1 + }, + "valid": true + } + ] + } +] |