summaryrefslogtreecommitdiff
path: root/tests/draft2020-12/optional/format/duration.json
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2021-06-29 09:59:08 +0200
committerJulian Berman <Julian@GrayVines.com>2021-06-29 09:59:08 +0200
commit02434de22eb0fb4eb60744c5f38c4895b5d4dd02 (patch)
tree0d8da906d93366461ff22192544e2872371a087d /tests/draft2020-12/optional/format/duration.json
parent4e76fb6ae3c1f77d12bca82e4f92691dd57cac15 (diff)
downloadjsonschema-02434de22eb0fb4eb60744c5f38c4895b5d4dd02.tar.gz
Squashed 'json/' changes from 1326f36e..17fa9589
17fa9589 Merge pull request #494 from anexia-it/master a0d28fdf Extend duration and uuid format tests for ignored values b6769f2b fix ids in older drafts git-subtree-dir: json git-subtree-split: 17fa958927a0ef5ba9d26bff8358c03f082476e7
Diffstat (limited to 'tests/draft2020-12/optional/format/duration.json')
-rw-r--r--tests/draft2020-12/optional/format/duration.json20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/draft2020-12/optional/format/duration.json b/tests/draft2020-12/optional/format/duration.json
index 4514738..b8124d7 100644
--- a/tests/draft2020-12/optional/format/duration.json
+++ b/tests/draft2020-12/optional/format/duration.json
@@ -87,6 +87,26 @@
"description": "weeks cannot be combined with other units",
"data": "P1Y2W",
"valid": false
+ },
+ {
+ "description": "null value should be ignored",
+ "data": null,
+ "valid": true
+ },
+ {
+ "description": "number value should be ignored",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "list value should be ignored",
+ "data": [],
+ "valid": true
+ },
+ {
+ "description": "object value should be ignored",
+ "data": {},
+ "valid": true
}
]
}