github.com/kaptinlin/jsonschema@v0.4.6/testdata/JSON-Schema-Test-Suite/tests/draft3/optional/format/ipv6.json (about) 1 [ 2 { 3 "description": "validation of IPv6 addresses", 4 "schema": { "format": "ipv6" }, 5 "tests": [ 6 { 7 "description": "a valid IPv6 address", 8 "data": "::1", 9 "valid": true 10 }, 11 { 12 "description": "an IPv6 address with out-of-range values", 13 "data": "12345::", 14 "valid": false 15 }, 16 { 17 "description": "an IPv6 address with too many components", 18 "data": "1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1", 19 "valid": false 20 }, 21 { 22 "description": "an IPv6 address containing illegal characters", 23 "data": "::laptop", 24 "valid": false 25 }, 26 { 27 "description": "no digits is valid", 28 "data": "::", 29 "valid": true 30 }, 31 { 32 "description": "leading colons is valid", 33 "data": "::1", 34 "valid": true 35 }, 36 { 37 "description": "trailing colons is valid", 38 "data": "d6::", 39 "valid": true 40 }, 41 { 42 "description": "two sets of double colons is invalid", 43 "data": "1::d6::42", 44 "valid": false 45 }, 46 { 47 "description": "mixed format with the ipv4 section as decimal octets", 48 "data": "1::d6:192.168.0.1", 49 "valid": true 50 }, 51 { 52 "description": "mixed format with double colons between the sections", 53 "data": "1:2::192.168.0.1", 54 "valid": true 55 }, 56 { 57 "description": "mixed format with ipv4 section with octet out of range", 58 "data": "1::2:192.168.256.1", 59 "valid": false 60 }, 61 { 62 "description": "mixed format with ipv4 section with a hex octet", 63 "data": "1::2:192.168.ff.1", 64 "valid": false 65 } 66 ] 67 } 68 ]