diff --git a/tests/draft3/type.json b/tests/draft3/type.json index 337da120..49c9b40a 100644 --- a/tests/draft3/type.json +++ b/tests/draft3/type.json @@ -18,6 +18,11 @@ "data": "foo", "valid": false }, + { + "description": "a string is still not an integer, even if it looks like one", + "data": "1", + "valid": false + }, { "description": "an object is not an integer", "data": {}, @@ -59,6 +64,11 @@ "data": "foo", "valid": false }, + { + "description": "a string is still not a number, even if it looks like one", + "data": "1", + "valid": false + }, { "description": "an object is not a number", "data": {}, @@ -100,6 +110,11 @@ "data": "foo", "valid": true }, + { + "description": "a string is still a string, even if it looks like a number", + "data": "1", + "valid": true + }, { "description": "an object is not a string", "data": {}, diff --git a/tests/draft4/type.json b/tests/draft4/type.json index db42a44d..61293740 100644 --- a/tests/draft4/type.json +++ b/tests/draft4/type.json @@ -18,6 +18,11 @@ "data": "foo", "valid": false }, + { + "description": "a string is still not an integer, even if it looks like one", + "data": "1", + "valid": false + }, { "description": "an object is not an integer", "data": {}, @@ -59,6 +64,11 @@ "data": "foo", "valid": false }, + { + "description": "a string is still not a number, even if it looks like one", + "data": "1", + "valid": false + }, { "description": "an object is not a number", "data": {}, @@ -100,6 +110,11 @@ "data": "foo", "valid": true }, + { + "description": "a string is still a string, even if it looks like a number", + "data": "1", + "valid": true + }, { "description": "an object is not a string", "data": {},