summaryrefslogtreecommitdiff
path: root/json/tests/draft7/optional/format/idn-email.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft7/optional/format/idn-email.json')
-rw-r--r--json/tests/draft7/optional/format/idn-email.json32
1 files changed, 31 insertions, 1 deletions
diff --git a/json/tests/draft7/optional/format/idn-email.json b/json/tests/draft7/optional/format/idn-email.json
index 552d106..6e21374 100644
--- a/json/tests/draft7/optional/format/idn-email.json
+++ b/json/tests/draft7/optional/format/idn-email.json
@@ -1,9 +1,39 @@
[
{
"description": "validation of an internationalized e-mail addresses",
- "schema": {"format": "idn-email"},
+ "schema": { "format": "idn-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 idn e-mail (example@example.test in Hangul)",
"data": "실례@실례.테스트",
"valid": true