summaryrefslogtreecommitdiff
path: root/json
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2020-08-14 12:31:08 -0400
committerJulian Berman <Julian@GrayVines.com>2020-08-14 12:31:08 -0400
commitc72ecef8429c371f1c8b3e2f0cb0fb7e4fe1a77d (patch)
tree1af987a1c3719201426029281e8271470a557769 /json
parent09bd22d3f324723d9b2ac669c907988635c73f47 (diff)
parentb3ebd208e200797c1235c614c779f015addf1d99 (diff)
downloadjsonschema-c72ecef8429c371f1c8b3e2f0cb0fb7e4fe1a77d.tar.gz
Merge commit 'b3ebd208e200797c1235c614c779f015addf1d99' into master
* commit 'b3ebd208e200797c1235c614c779f015addf1d99': Squashed 'json/' changes from 86f52b87..fce9e9b3
Diffstat (limited to 'json')
-rw-r--r--json/tests/draft2019-09/optional/format/date-time.json10
-rw-r--r--json/tests/draft2019-09/optional/format/date.json10
-rw-r--r--json/tests/draft3/optional/format/date-time.json10
-rw-r--r--json/tests/draft3/optional/format/date.json15
-rw-r--r--json/tests/draft4/optional/format/date-time.json10
-rw-r--r--json/tests/draft6/optional/format/date-time.json12
-rw-r--r--json/tests/draft7/optional/format/date-time.json10
-rw-r--r--json/tests/draft7/optional/format/date.json10
8 files changed, 86 insertions, 1 deletions
diff --git a/json/tests/draft2019-09/optional/format/date-time.json b/json/tests/draft2019-09/optional/format/date-time.json
index dfccee6..900fcb7 100644
--- a/json/tests/draft2019-09/optional/format/date-time.json
+++ b/json/tests/draft2019-09/optional/format/date-time.json
@@ -47,6 +47,16 @@
"description": "only RFC3339 not all of ISO 8601 are valid",
"data": "2013-350T01:01:01",
"valid": false
+ },
+ {
+ "description": "invalid non-padded month dates",
+ "data": "1963-6-19T08:30:06.283185Z",
+ "valid": false
+ },
+ {
+ "description": "invalid non-padded day dates",
+ "data": "1963-06-1T08:30:06.283185Z",
+ "valid": false
}
]
}
diff --git a/json/tests/draft2019-09/optional/format/date.json b/json/tests/draft2019-09/optional/format/date.json
index cd23baa..453b51d 100644
--- a/json/tests/draft2019-09/optional/format/date.json
+++ b/json/tests/draft2019-09/optional/format/date.json
@@ -17,6 +17,16 @@
"description": "only RFC3339 not all of ISO 8601 are valid",
"data": "2013-350",
"valid": false
+ },
+ {
+ "description": "invalidates non-padded month dates",
+ "data": "1998-1-20",
+ "valid": false
+ },
+ {
+ "description": "invalidates non-padded day dates",
+ "data": "1998-01-1",
+ "valid": false
}
]
}
diff --git a/json/tests/draft3/optional/format/date-time.json b/json/tests/draft3/optional/format/date-time.json
index 90279ba..58261fa 100644
--- a/json/tests/draft3/optional/format/date-time.json
+++ b/json/tests/draft3/optional/format/date-time.json
@@ -22,6 +22,16 @@
"description": "only RFC3339 not all of ISO 8601 are valid",
"data": "2013-350T01:01:01",
"valid": false
+ },
+ {
+ "description": "invalid non-padded month dates",
+ "data": "1963-6-19T08:30:06.283185Z",
+ "valid": false
+ },
+ {
+ "description": "invalid non-padded day dates",
+ "data": "1963-06-1T08:30:06.283185Z",
+ "valid": false
}
]
}
diff --git a/json/tests/draft3/optional/format/date.json b/json/tests/draft3/optional/format/date.json
index bd83042..4842b48 100644
--- a/json/tests/draft3/optional/format/date.json
+++ b/json/tests/draft3/optional/format/date.json
@@ -12,6 +12,21 @@
"description": "an invalid date string",
"data": "06/19/1963",
"valid": false
+ },
+ {
+ "description": "only RFC3339 not all of ISO 8601 are valid",
+ "data": "2013-350",
+ "valid": false
+ },
+ {
+ "description": "invalidates non-padded month dates",
+ "data": "1998-1-20",
+ "valid": false
+ },
+ {
+ "description": "invalidates non-padded day dates",
+ "data": "1998-01-1",
+ "valid": false
}
]
}
diff --git a/json/tests/draft4/optional/format/date-time.json b/json/tests/draft4/optional/format/date-time.json
index dfccee6..900fcb7 100644
--- a/json/tests/draft4/optional/format/date-time.json
+++ b/json/tests/draft4/optional/format/date-time.json
@@ -47,6 +47,16 @@
"description": "only RFC3339 not all of ISO 8601 are valid",
"data": "2013-350T01:01:01",
"valid": false
+ },
+ {
+ "description": "invalid non-padded month dates",
+ "data": "1963-6-19T08:30:06.283185Z",
+ "valid": false
+ },
+ {
+ "description": "invalid non-padded day dates",
+ "data": "1963-06-1T08:30:06.283185Z",
+ "valid": false
}
]
}
diff --git a/json/tests/draft6/optional/format/date-time.json b/json/tests/draft6/optional/format/date-time.json
index fc949e9..a6320a9 100644
--- a/json/tests/draft6/optional/format/date-time.json
+++ b/json/tests/draft6/optional/format/date-time.json
@@ -37,7 +37,7 @@
"description": "an invalid closing Z after time-zone offset",
"data": "1963-06-19T08:30:06.28123+01:00Z",
"valid": false
- },
+ },
{
"description": "an invalid date-time string",
"data": "06/19/1963 08:30:06 PST",
@@ -52,6 +52,16 @@
"description": "only RFC3339 not all of ISO 8601 are valid",
"data": "2013-350T01:01:01",
"valid": false
+ },
+ {
+ "description": "invalid non-padded month dates",
+ "data": "1963-6-19T08:30:06.283185Z",
+ "valid": false
+ },
+ {
+ "description": "invalid non-padded day dates",
+ "data": "1963-06-1T08:30:06.283185Z",
+ "valid": false
}
]
}
diff --git a/json/tests/draft7/optional/format/date-time.json b/json/tests/draft7/optional/format/date-time.json
index dfccee6..900fcb7 100644
--- a/json/tests/draft7/optional/format/date-time.json
+++ b/json/tests/draft7/optional/format/date-time.json
@@ -47,6 +47,16 @@
"description": "only RFC3339 not all of ISO 8601 are valid",
"data": "2013-350T01:01:01",
"valid": false
+ },
+ {
+ "description": "invalid non-padded month dates",
+ "data": "1963-6-19T08:30:06.283185Z",
+ "valid": false
+ },
+ {
+ "description": "invalid non-padded day dates",
+ "data": "1963-06-1T08:30:06.283185Z",
+ "valid": false
}
]
}
diff --git a/json/tests/draft7/optional/format/date.json b/json/tests/draft7/optional/format/date.json
index cd23baa..453b51d 100644
--- a/json/tests/draft7/optional/format/date.json
+++ b/json/tests/draft7/optional/format/date.json
@@ -17,6 +17,16 @@
"description": "only RFC3339 not all of ISO 8601 are valid",
"data": "2013-350",
"valid": false
+ },
+ {
+ "description": "invalidates non-padded month dates",
+ "data": "1998-1-20",
+ "valid": false
+ },
+ {
+ "description": "invalidates non-padded day dates",
+ "data": "1998-01-1",
+ "valid": false
}
]
}