summaryrefslogtreecommitdiff
path: root/tests/draft2020-12
diff options
context:
space:
mode:
Diffstat (limited to 'tests/draft2020-12')
-rw-r--r--tests/draft2020-12/optional/format/duration.json20
-rw-r--r--tests/draft2020-12/optional/format/uuid.json20
2 files changed, 40 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
}
]
}
diff --git a/tests/draft2020-12/optional/format/uuid.json b/tests/draft2020-12/optional/format/uuid.json
index 45bf349..3d0f0e7 100644
--- a/tests/draft2020-12/optional/format/uuid.json
+++ b/tests/draft2020-12/optional/format/uuid.json
@@ -64,6 +64,26 @@
"description": "hypothetical version 15",
"data": "99c17cbb-656f-f64a-940f-1a4568f03487",
"valid": true
+ },
+ {
+ "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
}
]
}