Skip to content

Commit 8e5b2f1

Browse files
fix needless inconsistencies in format tests between drafts
- whitespace - a bad RFC uri - omitted tests
1 parent 02d7cb5 commit 8e5b2f1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+129
-95
lines changed

tests/draft-future/optional/format/date-time.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"description": "validation of date-time strings",
4-
"schema": {"format": "date-time"},
4+
"schema": { "format": "date-time" },
55
"tests": [
66
{
77
"description": "a valid date-time string",
@@ -33,6 +33,11 @@
3333
"data": "1990-12-31T15:59:60-24:00",
3434
"valid": false
3535
},
36+
{
37+
"description": "an invalid closing Z after time-zone offset",
38+
"data": "1963-06-19T08:30:06.28123+01:00Z",
39+
"valid": false
40+
},
3641
{
3742
"description": "an invalid date-time string",
3843
"data": "06/19/1963 08:30:06 PST",

tests/draft-future/optional/format/date.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"description": "validation of date strings",
4-
"schema": {"format": "date"},
4+
"schema": { "format": "date" },
55
"tests": [
66
{
77
"description": "a valid date string",

tests/draft-future/optional/format/duration.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"description": "validation of duration strings",
4-
"schema": {"format": "duration"},
4+
"schema": { "format": "duration" },
55
"tests": [
66
{
77
"description": "a valid duration string",

tests/draft-future/optional/format/email.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"description": "validation of e-mail addresses",
4-
"schema": {"format": "email"},
4+
"schema": { "format": "email" },
55
"tests": [
66
{
77
"description": "a valid e-mail address",

tests/draft-future/optional/format/hostname.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"description": "validation of host names",
4-
"schema": {"format": "hostname"},
4+
"schema": { "format": "hostname" },
55
"tests": [
66
{
77
"description": "a valid host name",

tests/draft-future/optional/format/idn-email.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"description": "validation of an internationalized e-mail addresses",
4-
"schema": {"format": "idn-email"},
4+
"schema": { "format": "idn-email" },
55
"tests": [
66
{
77
"description": "a valid idn e-mail (example@example.test in Hangul)",

tests/draft-future/optional/format/ipv4.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"description": "validation of IP addresses",
4-
"schema": {"format": "ipv4"},
4+
"schema": { "format": "ipv4" },
55
"tests": [
66
{
77
"description": "a valid IP address",

tests/draft-future/optional/format/ipv6.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"description": "validation of IPv6 addresses",
4-
"schema": {"format": "ipv6"},
4+
"schema": { "format": "ipv6" },
55
"tests": [
66
{
77
"description": "a valid IPv6 address",

tests/draft-future/optional/format/iri-reference.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"description": "validation of IRI References",
4-
"schema": {"format": "iri-reference"},
4+
"schema": { "format": "iri-reference" },
55
"tests": [
66
{
77
"description": "a valid IRI",

tests/draft-future/optional/format/iri.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"description": "validation of IRIs",
4-
"schema": {"format": "iri"},
4+
"schema": { "format": "iri" },
55
"tests": [
66
{
77
"description": "a valid IRI with anchor tag",

0 commit comments

Comments
 (0)