summaryrefslogtreecommitdiff
path: root/tests/draft2019-09/optional/format/date.json
blob: cd23baae3abcd58c9543c7f8b2f935a9391d92a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[
    {
        "description": "validation of date strings",
        "schema": {"format": "date"},
        "tests": [
            {
                "description": "a valid date string",
                "data": "1963-06-19",
                "valid": true
            },
            {
                "description": "an invalid date-time string",
                "data": "06/19/1963",
                "valid": false
            },
            {
                "description": "only RFC3339 not all of ISO 8601 are valid",
                "data": "2013-350",
                "valid": false
            }
        ]
    }
]