summaryrefslogtreecommitdiff
path: root/json/tests/draft2019-09/optional/format/date.json
blob: 453b51de087ea4c2468534a814bf94268c1fe8e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[
    {
        "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
            },
            {
                "description": "invalidates non-padded month dates",
                "data": "1998-1-20",
                "valid": false
            },
            {
                "description": "invalidates non-padded day dates",
                "data": "1998-01-1",
                "valid": false
            }
        ]
    }
]