share/tests/draft3/optional/format/time.json
raw| 1 | [ |
| 2 | { |
| 3 | "description": "validation of time strings", |
| 4 | "schema": { "format": "time" }, |
| 5 | "tests": [ |
| 6 | { |
| 7 | "description": "a valid time string", |
| 8 | "data": "08:30:06", |
| 9 | "valid": true |
| 10 | }, |
| 11 | { |
| 12 | "description": "an invalid time string", |
| 13 | "data": "8:30 AM", |
| 14 | "valid": false |
| 15 | }, |
| 16 | { |
| 17 | "description": "an invalid time string in date-time format", |
| 18 | "data": "2020-11-28T23:55:45Z", |
| 19 | "valid": false |
| 20 | } |
| 21 | ] |
| 22 | } |
| 23 | ] |