...

Text file src/github.com/qri-io/jsonschema/testdata/draft2019-09/optional/format/date-time.json

Documentation: github.com/qri-io/jsonschema/testdata/draft2019-09/optional/format

     1[
     2    {
     3        "description": "validation of date-time strings",
     4        "schema": {"format": "date-time"},
     5        "tests": [
     6            {
     7                "description": "a valid date-time string",
     8                "data": "1963-06-19T08:30:06.283185Z",
     9                "valid": true
    10            },
    11            {
    12                "description": "a valid date-time string without second fraction",
    13                "data": "1963-06-19T08:30:06Z",
    14                "valid": true
    15            },
    16            {
    17                "description": "a valid date-time string with plus offset",
    18                "data": "1937-01-01T12:00:27.87+00:20",
    19                "valid": true
    20            },
    21            {
    22                "description": "a valid date-time string with minus offset",
    23                "data": "1990-12-31T15:59:50.123-08:00",
    24                "valid": true
    25            },
    26            {
    27                "description": "a invalid day in date-time string",
    28                "data": "1990-02-31T15:59:60.123-08:00",
    29                "valid": false
    30            },
    31            {
    32                "description": "an invalid offset in date-time string",
    33                "data": "1990-12-31T15:59:60-24:00",
    34                "valid": false
    35            },
    36            {
    37                "description": "an invalid date-time string",
    38                "data": "06/19/1963 08:30:06 PST",
    39                "valid": false
    40            },
    41            {
    42                "description": "case-insensitive T and Z",
    43                "data": "1963-06-19t08:30:06.283185z",
    44                "valid": true
    45            },
    46            {
    47                "description": "only RFC3339 not all of ISO 8601 are valid",
    48                "data": "2013-350T01:01:01",
    49                "valid": false
    50            }
    51        ]
    52    }
    53]

View as plain text