github.com/kaptinlin/jsonschema@v0.4.6/testdata/JSON-Schema-Test-Suite/tests/draft7/optional/format/iri.json (about) 1 [ 2 { 3 "description": "validation of IRIs", 4 "schema": { "format": "iri" }, 5 "tests": [ 6 { 7 "description": "all string formats ignore integers", 8 "data": 12, 9 "valid": true 10 }, 11 { 12 "description": "all string formats ignore floats", 13 "data": 13.7, 14 "valid": true 15 }, 16 { 17 "description": "all string formats ignore objects", 18 "data": {}, 19 "valid": true 20 }, 21 { 22 "description": "all string formats ignore arrays", 23 "data": [], 24 "valid": true 25 }, 26 { 27 "description": "all string formats ignore booleans", 28 "data": false, 29 "valid": true 30 }, 31 { 32 "description": "all string formats ignore nulls", 33 "data": null, 34 "valid": true 35 }, 36 { 37 "description": "a valid IRI with anchor tag", 38 "data": "http://ƒøø.ßår/?∂éœ=πîx#πîüx", 39 "valid": true 40 }, 41 { 42 "description": "a valid IRI with anchor tag and parentheses", 43 "data": "http://ƒøø.com/blah_(wîkïpédiå)_blah#ßité-1", 44 "valid": true 45 }, 46 { 47 "description": "a valid IRI with URL-encoded stuff", 48 "data": "http://ƒøø.ßår/?q=Test%20URL-encoded%20stuff", 49 "valid": true 50 }, 51 { 52 "description": "a valid IRI with many special characters", 53 "data": "http://-.~_!$&'()*+,;=:%40:80%2f::::::@example.com", 54 "valid": true 55 }, 56 { 57 "description": "a valid IRI based on IPv6", 58 "data": "http://[2001:0db8:85a3:0000:0000:8a2e:0370:7334]", 59 "valid": true 60 }, 61 { 62 "description": "an invalid IRI based on IPv6", 63 "data": "http://2001:0db8:85a3:0000:0000:8a2e:0370:7334", 64 "valid": false 65 }, 66 { 67 "description": "an invalid relative IRI Reference", 68 "data": "/abc", 69 "valid": false 70 }, 71 { 72 "description": "an invalid IRI", 73 "data": "\\\\WINDOWS\\filëßåré", 74 "valid": false 75 }, 76 { 77 "description": "an invalid IRI though valid IRI reference", 78 "data": "âππ", 79 "valid": false 80 } 81 ] 82 } 83 ]