summaryrefslogtreecommitdiff
path: root/json/tests/draft2020-12/vocabulary.json
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2021-10-19 18:34:35 -0400
committerJulian Berman <Julian@GrayVines.com>2021-10-19 18:34:35 -0400
commitd837e9749328e7173b78ff19b5e2f539579ff866 (patch)
tree9361326496040eff8599791b518c6634eea52fe0 /json/tests/draft2020-12/vocabulary.json
parent53864d28f3dcbc0556661054752111ca5e4ecd57 (diff)
parent4ecbea58e0828696f7714abba624e2160518fddd (diff)
downloadjsonschema-d837e9749328e7173b78ff19b5e2f539579ff866.tar.gz
Merge commit '4ecbea58e0828696f7714abba624e2160518fddd'
* commit '4ecbea58e0828696f7714abba624e2160518fddd': Squashed 'json/' changes from 54440eab4..ba3a90534
Diffstat (limited to 'json/tests/draft2020-12/vocabulary.json')
-rw-r--r--json/tests/draft2020-12/vocabulary.json34
1 files changed, 34 insertions, 0 deletions
diff --git a/json/tests/draft2020-12/vocabulary.json b/json/tests/draft2020-12/vocabulary.json
new file mode 100644
index 0000000..b6997b4
--- /dev/null
+++ b/json/tests/draft2020-12/vocabulary.json
@@ -0,0 +1,34 @@
+[
+ {
+ "description": "schema that uses custom metaschema with with no validation vocabulary",
+ "schema": {
+ "$id": "https://schema/using/no/validation",
+ "$schema": "http://localhost:1234/draft2020-12/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": 20,
+ "valid": true
+ },
+ {
+ "description": "no validation: invalid number, but it still validates",
+ "data": 1,
+ "valid": true
+ }
+ ]
+ }
+]