github.com/kaptinlin/jsonschema@v0.4.6/testdata/JSON-Schema-Test-Suite/tests/draft2020-12/optional/format/date-time.json (about) 1 [ 2 { 3 "description": "validation of date-time strings", 4 "schema": { 5 "$schema": "https://json-schema.org/draft/2020-12/schema", 6 "format": "date-time" 7 }, 8 "tests": [ 9 { 10 "description": "all string formats ignore integers", 11 "data": 12, 12 "valid": true 13 }, 14 { 15 "description": "all string formats ignore floats", 16 "data": 13.7, 17 "valid": true 18 }, 19 { 20 "description": "all string formats ignore objects", 21 "data": {}, 22 "valid": true 23 }, 24 { 25 "description": "all string formats ignore arrays", 26 "data": [], 27 "valid": true 28 }, 29 { 30 "description": "all string formats ignore booleans", 31 "data": false, 32 "valid": true 33 }, 34 { 35 "description": "all string formats ignore nulls", 36 "data": null, 37 "valid": true 38 }, 39 { 40 "description": "a valid date-time string", 41 "data": "1963-06-19T08:30:06.283185Z", 42 "valid": true 43 }, 44 { 45 "description": "a valid date-time string without second fraction", 46 "data": "1963-06-19T08:30:06Z", 47 "valid": true 48 }, 49 { 50 "description": "a valid date-time string with plus offset", 51 "data": "1937-01-01T12:00:27.87+00:20", 52 "valid": true 53 }, 54 { 55 "description": "a valid date-time string with minus offset", 56 "data": "1990-12-31T15:59:50.123-08:00", 57 "valid": true 58 }, 59 { 60 "description": "a valid date-time with a leap second, UTC", 61 "data": "1998-12-31T23:59:60Z", 62 "valid": true 63 }, 64 { 65 "description": "a valid date-time with a leap second, with minus offset", 66 "data": "1998-12-31T15:59:60.123-08:00", 67 "valid": true 68 }, 69 { 70 "description": "an invalid date-time past leap second, UTC", 71 "data": "1998-12-31T23:59:61Z", 72 "valid": false 73 }, 74 { 75 "description": "an invalid date-time with leap second on a wrong minute, UTC", 76 "data": "1998-12-31T23:58:60Z", 77 "valid": false 78 }, 79 { 80 "description": "an invalid date-time with leap second on a wrong hour, UTC", 81 "data": "1998-12-31T22:59:60Z", 82 "valid": false 83 }, 84 { 85 "description": "an invalid day in date-time string", 86 "data": "1990-02-31T15:59:59.123-08:00", 87 "valid": false 88 }, 89 { 90 "description": "an invalid offset in date-time string", 91 "data": "1990-12-31T15:59:59-24:00", 92 "valid": false 93 }, 94 { 95 "description": "an invalid closing Z after time-zone offset", 96 "data": "1963-06-19T08:30:06.28123+01:00Z", 97 "valid": false 98 }, 99 { 100 "description": "an invalid date-time string", 101 "data": "06/19/1963 08:30:06 PST", 102 "valid": false 103 }, 104 { 105 "description": "case-insensitive T and Z", 106 "data": "1963-06-19t08:30:06.283185z", 107 "valid": true 108 }, 109 { 110 "description": "only RFC3339 not all of ISO 8601 are valid", 111 "data": "2013-350T01:01:01", 112 "valid": false 113 }, 114 { 115 "description": "invalid non-padded month dates", 116 "data": "1963-6-19T08:30:06.283185Z", 117 "valid": false 118 }, 119 { 120 "description": "invalid non-padded day dates", 121 "data": "1963-06-1T08:30:06.283185Z", 122 "valid": false 123 }, 124 { 125 "description": "invalid non-ASCII '৪' (a Bengali 4) in date portion", 126 "data": "1963-06-1৪T00:00:00Z", 127 "valid": false 128 }, 129 { 130 "description": "invalid non-ASCII '৪' (a Bengali 4) in time portion", 131 "data": "1963-06-11T0৪:00:00Z", 132 "valid": false 133 } 134 ] 135 } 136 ]