summaryrefslogtreecommitdiff
path: root/tests/draft6/optional/format/email.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/draft6/optional/format/email.json')
-rw-r--r--tests/draft6/optional/format/email.json32
1 files changed, 31 insertions, 1 deletions
diff --git a/tests/draft6/optional/format/email.json b/tests/draft6/optional/format/email.json
index 02396d2..d6761a4 100644
--- a/tests/draft6/optional/format/email.json
+++ b/tests/draft6/optional/format/email.json
@@ -1,9 +1,39 @@
[
{
"description": "validation of e-mail addresses",
- "schema": {"format": "email"},
+ "schema": { "format": "email" },
"tests": [
{
+ "description": "all string formats ignore integers",
+ "data": 12,
+ "valid": true
+ },
+ {
+ "description": "all string formats ignore floats",
+ "data": 13.7,
+ "valid": true
+ },
+ {
+ "description": "all string formats ignore objects",
+ "data": {},
+ "valid": true
+ },
+ {
+ "description": "all string formats ignore arrays",
+ "data": [],
+ "valid": true
+ },
+ {
+ "description": "all string formats ignore booleans",
+ "data": false,
+ "valid": true
+ },
+ {
+ "description": "all string formats ignore nulls",
+ "data": null,
+ "valid": true
+ },
+ {
"description": "a valid e-mail address",
"data": "joe.bloggs@example.com",
"valid": true