Debian Codegraph @

ajv-formats/tests/extras/formatMinimum.json

raw symbols SCIP
1 [
2 {
3 "description": "formatMinimum validation with date format",
4 "schema": {
5 "type": "string",
6 "format": "date",
7 "formatMinimum": "2015-08-17"
8 },
9 "tests": [
10 {
11 "description": "after the minimum date is valid",
12 "data": "2015-11-09",
13 "valid": true
14 },
15 {
16 "description": "boundary point is valid",
17 "data": "2015-08-17",
18 "valid": true
19 },
20 {
21 "description": "before the minimum date is invalid",
22 "data": "2014-12-03",
23 "valid": false
24 }
25 ]
26 },
27 {
28 "description": "formatExclusiveMinimum validation with date format",
29 "schema": {
30 "type": "string",
31 "format": "date",
32 "formatExclusiveMinimum": "2015-08-17"
33 },
34 "tests": [
35 {
36 "description": "after the minimum date is still valid",
37 "data": "2015-11-09",
38 "valid": true
39 },
40 {
41 "description": "boundary point is invalid",
42 "data": "2015-08-17",
43 "valid": false
44 },
45 {
46 "description": "before the minimum date is still invalid",
47 "data": "2014-12-03",
48 "valid": false
49 }
50 ]
51 },
52 {
53 "description": "formatMinimum validation with time format",
54 "schema": {
55 "type": "string",
56 "format": "time",
57 "formatMinimum": "13:15:17.000Z"
58 },
59 "tests": [
60 {
61 "description": "time after the minimum time is valid",
62 "data": "15:11:09.000Z",
63 "valid": true
64 },
65 {
66 "description": "boundary point is valid",
67 "data": "13:15:17.000Z",
68 "valid": true
69 },
70 {
71 "description": "time before the minimum time is invalid, timezone is taken into account",
72 "data": "13:15:17.000+01:00",
73 "valid": false
74 },
75 {
76 "description": "boundary point is valid, timezone is taken into account",
77 "data": "14:15:17.000+01:00",
78 "valid": true
79 },
80 {
81 "description": "time after the minimum time is valid, timezone is taken into account",
82 "data": "14:20:17.000+01:00",
83 "valid": true
84 },
85 {
86 "description": "time before the minimum time is invalid",
87 "data": "10:33:55.000Z",
88 "valid": false
89 }
90 ]
91 },
92 {
93 "description": "formatExclusiveMinimum validation with time format",
94 "schema": {
95 "type": "string",
96 "format": "time",
97 "formatExclusiveMinimum": "13:15:17.000Z"
98 },
99 "tests": [
100 {
101 "description": "time after the minimum time is still valid",
102 "data": "15:11:09.000Z",
103 "valid": true
104 },
105 {
106 "description": "boundary point is invalid",
107 "data": "13:15:17.000Z",
108 "valid": false
109 },
110 {
111 "description": "boundary point is invalid, timezone is taken into account",
112 "data": "14:15:17.000+01:00",
113 "valid": false
114 },
115 {
116 "description": "boundary point is invalid, no timezone is ok too",
117 "data": "13:15:17.000",
118 "valid": false
119 },
120 {
121 "description": "time before the minimum time is still invalid",
122 "data": "10:33:55.000Z",
123 "valid": false
124 }
125 ]
126 },
127 {
128 "description": "formatMinimum validation with date-time format",
129 "schema": {
130 "type": "string",
131 "format": "date-time",
132 "formatMinimum": "2015-08-17T13:15:17.000Z"
133 },
134 "tests": [
135 {
136 "description": "date after the minimum date is valid",
137 "data": "2015-11-09T13:15:17.000Z",
138 "valid": true
139 },
140 {
141 "description": "same date, time after the minimum time is valid",
142 "data": "2015-08-17T15:11:09.000Z",
143 "valid": true
144 },
145 {
146 "description": "boundary point is valid",
147 "data": "2015-08-17T13:15:17.000Z",
148 "valid": true
149 },
150 {
151 "description": "same date, time before the minimum time is invalid",
152 "data": "2015-08-17T10:33:55.000Z",
153 "valid": false
154 },
155 {
156 "description": "date before the minimum date is invalid",
157 "data": "2014-12-03T13:15:17.000Z",
158 "valid": false
159 }
160 ]
161 },
162 {
163 "description": "formatExclusiveMinimum validation with date-time format",
164 "schema": {
165 "type": "string",
166 "format": "date-time",
167 "formatExclusiveMinimum": "2015-08-17T13:15:17.000Z"
168 },
169 "tests": [
170 {
171 "description": "date after the minimum date is still valid",
172 "data": "2015-11-09T13:15:17.000Z",
173 "valid": true
174 },
175 {
176 "description": "same date, time after the minimum time is still valid",
177 "data": "2015-08-17T15:11:09.000Z",
178 "valid": true
179 },
180 {
181 "description": "boundary point is invalid",
182 "data": "2015-08-17T13:15:17.000Z",
183 "valid": false
184 },
185 {
186 "description": "same date, time before the minimum time is still invalid",
187 "data": "2015-08-17T10:33:55.000Z",
188 "valid": false
189 },
190 {
191 "description": "date before the minimum date is still invalid",
192 "data": "2014-12-03T13:15:17.000Z",
193 "valid": false
194 }
195 ]
196 },
197 {
198 "description": "formatMinimum validation with iso-time format",
199 "schema": {
200 "type": "string",
201 "format": "iso-time",
202 "formatMinimum": "13:15:17.000Z"
203 },
204 "tests": [
205 {
206 "description": "time after the minimum time is valid",
207 "data": "15:11:09.000Z",
208 "valid": true
209 },
210 {
211 "description": "boundary point is valid",
212 "data": "13:15:17.000Z",
213 "valid": true
214 },
215 {
216 "description": "time before the minimum time is invalid, timezone is ignored",
217 "data": "13:15:16.000+01:00",
218 "valid": false
219 },
220 {
221 "description": "boundary point is valid, timezone is ignored",
222 "data": "13:15:17.000+01:00",
223 "valid": true
224 },
225 {
226 "description": "time after the minimum time is valid, timezone is ignored",
227 "data": "13:15:18.000+01:00",
228 "valid": true
229 },
230 {
231 "description": "time before the minimum time is invalid",
232 "data": "10:33:55.000Z",
233 "valid": false
234 }
235 ]
236 },
237 {
238 "description": "formatExclusiveMinimum validation with iso-time format",
239 "schema": {
240 "type": "string",
241 "format": "iso-time",
242 "formatExclusiveMinimum": "13:15:17.000Z"
243 },
244 "tests": [
245 {
246 "description": "time after the minimum time is still valid",
247 "data": "15:11:09.000Z",
248 "valid": true
249 },
250 {
251 "description": "boundary point is invalid",
252 "data": "13:15:17.000Z",
253 "valid": false
254 },
255 {
256 "description": "boundary point is invalid, timezone is ignored",
257 "data": "13:15:17.000+01:00",
258 "valid": false
259 },
260 {
261 "description": "boundary point is invalid, no timezone is ok too",
262 "data": "13:15:17.000",
263 "valid": false
264 },
265 {
266 "description": "time before the minimum time is still invalid",
267 "data": "10:33:55.000Z",
268 "valid": false
269 }
270 ]
271 },
272 {
273 "description": "formatMinimum validation with iso-date-time format",
274 "schema": {
275 "type": "string",
276 "format": "iso-date-time",
277 "formatMinimum": "2015-08-17T13:15:17.000Z"
278 },
279 "tests": [
280 {
281 "description": "date after the minimum date is valid",
282 "data": "2015-11-09T13:15:17.000Z",
283 "valid": true
284 },
285 {
286 "description": "same date, time after the minimum time is valid",
287 "data": "2015-08-17T15:11:09.000Z",
288 "valid": true
289 },
290 {
291 "description": "boundary point is valid",
292 "data": "2015-08-17T13:15:17.000Z",
293 "valid": true
294 },
295 {
296 "description": "same date, time before the minimum time is invalid",
297 "data": "2015-08-17T10:33:55.000Z",
298 "valid": false
299 },
300 {
301 "description": "date before the minimum date is invalid",
302 "data": "2014-12-03T13:15:17.000Z",
303 "valid": false
304 }
305 ]
306 },
307 {
308 "description": "formatExclusiveMinimum validation with iso-date-time format",
309 "schema": {
310 "type": "string",
311 "format": "iso-date-time",
312 "formatExclusiveMinimum": "2015-08-17T13:15:17.000Z"
313 },
314 "tests": [
315 {
316 "description": "date after the minimum date is still valid",
317 "data": "2015-11-09T13:15:17.000Z",
318 "valid": true
319 },
320 {
321 "description": "same date, time after the minimum time is still valid",
322 "data": "2015-08-17T15:11:09.000Z",
323 "valid": true
324 },
325 {
326 "description": "boundary point is invalid",
327 "data": "2015-08-17T13:15:17.000Z",
328 "valid": false
329 },
330 {
331 "description": "same date, time before the minimum time is still invalid",
332 "data": "2015-08-17T10:33:55.000Z",
333 "valid": false
334 },
335 {
336 "description": "date before the minimum date is still invalid",
337 "data": "2014-12-03T13:15:17.000Z",
338 "valid": false
339 }
340 ]
341 }
342 ]