summaryrefslogtreecommitdiff
path: root/json
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2020-05-07 19:14:46 -0400
committerJulian Berman <Julian@GrayVines.com>2020-05-07 19:14:46 -0400
commitf29d5f1257477be48eaefd7f4d5d1ca245c4d556 (patch)
tree158a573ba5ddf79fa4398d08865df634eeeae4cc /json
parent2b3544c1d496f5ccae64a87754e47bdd4b64b240 (diff)
parentcc583dfc91cd036d98fdd75ccdb48c16d0d0e945 (diff)
downloadjsonschema-f29d5f1257477be48eaefd7f4d5d1ca245c4d556.tar.gz
Merge commit 'cc583dfc91cd036d98fdd75ccdb48c16d0d0e945'
* commit 'cc583dfc91cd036d98fdd75ccdb48c16d0d0e945': Squashed 'json/' changes from 361620ecf..9d0e0eb31
Diffstat (limited to 'json')
-rw-r--r--json/tests/draft2019-09/type.json5
-rw-r--r--json/tests/draft3/type.json5
-rw-r--r--json/tests/draft4/type.json5
-rw-r--r--json/tests/draft6/type.json5
-rw-r--r--json/tests/draft7/type.json5
5 files changed, 25 insertions, 0 deletions
diff --git a/json/tests/draft2019-09/type.json b/json/tests/draft2019-09/type.json
index 05e0808..8304647 100644
--- a/json/tests/draft2019-09/type.json
+++ b/json/tests/draft2019-09/type.json
@@ -60,6 +60,11 @@
"valid": true
},
{
+ "description": "a float with zero fractional part is a number (and an integer)",
+ "data": 1.0,
+ "valid": true
+ },
+ {
"description": "a float is a number",
"data": 1.1,
"valid": true
diff --git a/json/tests/draft3/type.json b/json/tests/draft3/type.json
index 49c9b40..f962cc3 100644
--- a/json/tests/draft3/type.json
+++ b/json/tests/draft3/type.json
@@ -55,6 +55,11 @@
"valid": true
},
{
+ "description": "a float with zero fractional part is a number",
+ "data": 1.0,
+ "valid": true
+ },
+ {
"description": "a float is a number",
"data": 1.1,
"valid": true
diff --git a/json/tests/draft4/type.json b/json/tests/draft4/type.json
index ea33b18..df46677 100644
--- a/json/tests/draft4/type.json
+++ b/json/tests/draft4/type.json
@@ -55,6 +55,11 @@
"valid": true
},
{
+ "description": "a float with zero fractional part is a number",
+ "data": 1.0,
+ "valid": true
+ },
+ {
"description": "a float is a number",
"data": 1.1,
"valid": true
diff --git a/json/tests/draft6/type.json b/json/tests/draft6/type.json
index 05e0808..8304647 100644
--- a/json/tests/draft6/type.json
+++ b/json/tests/draft6/type.json
@@ -60,6 +60,11 @@
"valid": true
},
{
+ "description": "a float with zero fractional part is a number (and an integer)",
+ "data": 1.0,
+ "valid": true
+ },
+ {
"description": "a float is a number",
"data": 1.1,
"valid": true
diff --git a/json/tests/draft7/type.json b/json/tests/draft7/type.json
index 05e0808..8304647 100644
--- a/json/tests/draft7/type.json
+++ b/json/tests/draft7/type.json
@@ -60,6 +60,11 @@
"valid": true
},
{
+ "description": "a float with zero fractional part is a number (and an integer)",
+ "data": 1.0,
+ "valid": true
+ },
+ {
"description": "a float is a number",
"data": 1.1,
"valid": true