github.com/kaptinlin/jsonschema@v0.4.6/testdata/JSON-Schema-Test-Suite/tests/draft7/optional/format/uri-reference.json (about) 1 [ 2 { 3 "description": "validation of URI References", 4 "schema": { "format": "uri-reference" }, 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 URI", 38 "data": "http://foo.bar/?baz=qux#quux", 39 "valid": true 40 }, 41 { 42 "description": "a valid protocol-relative URI Reference", 43 "data": "//foo.bar/?baz=qux#quux", 44 "valid": true 45 }, 46 { 47 "description": "a valid relative URI Reference", 48 "data": "/abc", 49 "valid": true 50 }, 51 { 52 "description": "an invalid URI Reference", 53 "data": "\\\\WINDOWS\\fileshare", 54 "valid": false 55 }, 56 { 57 "description": "a valid URI Reference", 58 "data": "abc", 59 "valid": true 60 }, 61 { 62 "description": "a valid URI fragment", 63 "data": "#fragment", 64 "valid": true 65 }, 66 { 67 "description": "an invalid URI fragment", 68 "data": "#frag\\ment", 69 "valid": false 70 } 71 ] 72 } 73 ]