summaryrefslogtreecommitdiff
path: root/json/tests/draft2020-12/optional/float-overflow.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft2020-12/optional/float-overflow.json')
-rw-r--r--json/tests/draft2020-12/optional/float-overflow.json17
1 files changed, 17 insertions, 0 deletions
diff --git a/json/tests/draft2020-12/optional/float-overflow.json b/json/tests/draft2020-12/optional/float-overflow.json
new file mode 100644
index 0000000..f5ae8b1
--- /dev/null
+++ b/json/tests/draft2020-12/optional/float-overflow.json
@@ -0,0 +1,17 @@
+[
+ {
+ "description": "all integers are multiples of 0.5, if overflow is handled",
+ "schema": {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "type": "integer",
+ "multipleOf": 0.5
+ },
+ "tests": [
+ {
+ "description": "valid if optional overflow handling is implemented",
+ "data": 1e308,
+ "valid": true
+ }
+ ]
+ }
+]