Skip to content

Commit 6327a3b

Browse files
committed
Remove annotation-asserting tests from draft3's format as well.
In older (pre-draft7) drafts, implementations are indeed free to treat format as an assertion by default. (ref #497 (comment))
1 parent 35bab68 commit 6327a3b

File tree

1 file changed

+0
-45
lines changed

1 file changed

+0
-45
lines changed

tests/draft3/format.json

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@
3232
"description": "all string formats ignore nulls",
3333
"data": null,
3434
"valid": true
35-
},
36-
{
37-
"description": "invalid email string is only an annotation by default",
38-
"data": "2962",
39-
"valid": true
4035
}
4136
]
4237
},
@@ -73,11 +68,6 @@
7368
"description": "all string formats ignore nulls",
7469
"data": null,
7570
"valid": true
76-
},
77-
{
78-
"description": "invalid ip-address string is only an annotation by default",
79-
"data": "127.0.0.0.1",
80-
"valid": true
8171
}
8272
]
8373
},
@@ -114,11 +104,6 @@
114104
"description": "all string formats ignore nulls",
115105
"data": null,
116106
"valid": true
117-
},
118-
{
119-
"description": "invalid ipv6 string is only an annotation by default",
120-
"data": "12345::",
121-
"valid": true
122107
}
123108
]
124109
},
@@ -155,11 +140,6 @@
155140
"description": "all string formats ignore nulls",
156141
"data": null,
157142
"valid": true
158-
},
159-
{
160-
"description": "invalid host-name string is only an annotation by default",
161-
"data": "-a-host-name-that-starts-with--",
162-
"valid": true
163143
}
164144
]
165145
},
@@ -196,11 +176,6 @@
196176
"description": "all string formats ignore nulls",
197177
"data": null,
198178
"valid": true
199-
},
200-
{
201-
"description": "invalid date-time string is only an annotation by default",
202-
"data": "1990-02-31T15:59:60.123-08:00",
203-
"valid": true
204179
}
205180
]
206181
},
@@ -237,11 +212,6 @@
237212
"description": "all string formats ignore nulls",
238213
"data": null,
239214
"valid": true
240-
},
241-
{
242-
"description": "invalid regex string is only an annotation by default",
243-
"data": "^(abc]",
244-
"valid": true
245215
}
246216
]
247217
},
@@ -278,11 +248,6 @@
278248
"description": "all string formats ignore nulls",
279249
"data": null,
280250
"valid": true
281-
},
282-
{
283-
"description": "invalid date string is only an annotation by default",
284-
"data": "06/19/1963",
285-
"valid": true
286251
}
287252
]
288253
},
@@ -319,11 +284,6 @@
319284
"description": "all string formats ignore nulls",
320285
"data": null,
321286
"valid": true
322-
},
323-
{
324-
"description": "invalid time string is only an annotation by default",
325-
"data": "08:30:06 PST",
326-
"valid": true
327287
}
328288
]
329289
},
@@ -396,11 +356,6 @@
396356
"description": "all string formats ignore nulls",
397357
"data": null,
398358
"valid": true
399-
},
400-
{
401-
"description": "invalid uri string is only an annotation by default",
402-
"data": "//foo.bar/?baz=qux#quux",
403-
"valid": true
404359
}
405360
]
406361
}

0 commit comments

Comments
 (0)