Debian Codegraph @

encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/uri.json

raw
1 [
2 {
3 "description": "validation of URIs",
4 "schema": {
5 "$schema": "https://json-schema.org/draft/2019-09/schema",
6 "format": "uri"
7 },
8 "skip": {
9 "v3-roundtrip": "generation only supported in version https://json-schema.org/draft/2020-12/schema"
10 },
11 "tests": [
12 {
13 "description": "all string formats ignore integers",
14 "data": 12,
15 "valid": true,
16 "skip": {
17 "v3-roundtrip": "could not extract schema"
18 }
19 },
20 {
21 "description": "all string formats ignore floats",
22 "data": 13.7,
23 "valid": true,
24 "skip": {
25 "v3-roundtrip": "could not extract schema"
26 }
27 },
28 {
29 "description": "all string formats ignore objects",
30 "data": {},
31 "valid": true,
32 "skip": {
33 "v3-roundtrip": "could not extract schema"
34 }
35 },
36 {
37 "description": "all string formats ignore arrays",
38 "data": [],
39 "valid": true,
40 "skip": {
41 "v3-roundtrip": "could not extract schema"
42 }
43 },
44 {
45 "description": "all string formats ignore booleans",
46 "data": false,
47 "valid": true,
48 "skip": {
49 "v3-roundtrip": "could not extract schema"
50 }
51 },
52 {
53 "description": "all string formats ignore nulls",
54 "data": null,
55 "valid": true,
56 "skip": {
57 "v3-roundtrip": "could not extract schema"
58 }
59 },
60 {
61 "description": "a valid URL with anchor tag",
62 "data": "http://foo.bar/?baz=qux#quux",
63 "valid": true,
64 "skip": {
65 "v3-roundtrip": "could not extract schema"
66 }
67 },
68 {
69 "description": "a valid URL with anchor tag and parentheses",
70 "data": "http://foo.com/blah_(wikipedia)_blah#cite-1",
71 "valid": true,
72 "skip": {
73 "v3-roundtrip": "could not extract schema"
74 }
75 },
76 {
77 "description": "a valid URL with URL-encoded stuff",
78 "data": "http://foo.bar/?q=Test%20URL-encoded%20stuff",
79 "valid": true,
80 "skip": {
81 "v3-roundtrip": "could not extract schema"
82 }
83 },
84 {
85 "description": "a valid puny-coded URL ",
86 "data": "http://xn--nw2a.xn--j6w193g/",
87 "valid": true,
88 "skip": {
89 "v3-roundtrip": "could not extract schema"
90 }
91 },
92 {
93 "description": "a valid URL with many special characters",
94 "data": "http://-.~_!$\u0026'()*+,;=:%40:80%2f::::::@example.com",
95 "valid": true,
96 "skip": {
97 "v3-roundtrip": "could not extract schema"
98 }
99 },
100 {
101 "description": "a valid URL based on IPv4",
102 "data": "http://223.255.255.254",
103 "valid": true,
104 "skip": {
105 "v3-roundtrip": "could not extract schema"
106 }
107 },
108 {
109 "description": "a valid URL with ftp scheme",
110 "data": "ftp://ftp.is.co.za/rfc/rfc1808.txt",
111 "valid": true,
112 "skip": {
113 "v3-roundtrip": "could not extract schema"
114 }
115 },
116 {
117 "description": "a valid URL for a simple text file",
118 "data": "http://www.ietf.org/rfc/rfc2396.txt",
119 "valid": true,
120 "skip": {
121 "v3-roundtrip": "could not extract schema"
122 }
123 },
124 {
125 "description": "a valid URL ",
126 "data": "ldap://[2001:db8::7]/c=GB?objectClass?one",
127 "valid": true,
128 "skip": {
129 "v3-roundtrip": "could not extract schema"
130 }
131 },
132 {
133 "description": "a valid mailto URI",
134 "data": "mailto:[email protected]",
135 "valid": true,
136 "skip": {
137 "v3-roundtrip": "could not extract schema"
138 }
139 },
140 {
141 "description": "a valid newsgroup URI",
142 "data": "news:comp.infosystems.www.servers.unix",
143 "valid": true,
144 "skip": {
145 "v3-roundtrip": "could not extract schema"
146 }
147 },
148 {
149 "description": "a valid tel URI",
150 "data": "tel:+1-816-555-1212",
151 "valid": true,
152 "skip": {
153 "v3-roundtrip": "could not extract schema"
154 }
155 },
156 {
157 "description": "a valid URN",
158 "data": "urn:oasis:names:specification:docbook:dtd:xml:4.1.2",
159 "valid": true,
160 "skip": {
161 "v3-roundtrip": "could not extract schema"
162 }
163 },
164 {
165 "description": "an invalid protocol-relative URI Reference",
166 "data": "//foo.bar/?baz=qux#quux",
167 "valid": false,
168 "skip": {
169 "v3-roundtrip": "could not extract schema"
170 }
171 },
172 {
173 "description": "an invalid relative URI Reference",
174 "data": "/abc",
175 "valid": false,
176 "skip": {
177 "v3-roundtrip": "could not extract schema"
178 }
179 },
180 {
181 "description": "an invalid URI",
182 "data": "\\\\WINDOWS\\fileshare",
183 "valid": false,
184 "skip": {
185 "v3-roundtrip": "could not extract schema"
186 }
187 },
188 {
189 "description": "an invalid URI though valid URI reference",
190 "data": "abc",
191 "valid": false,
192 "skip": {
193 "v3-roundtrip": "could not extract schema"
194 }
195 },
196 {
197 "description": "an invalid URI with spaces",
198 "data": "http:// shouldfail.com",
199 "valid": false,
200 "skip": {
201 "v3-roundtrip": "could not extract schema"
202 }
203 },
204 {
205 "description": "an invalid URI with spaces and missing scheme",
206 "data": ":// should fail",
207 "valid": false,
208 "skip": {
209 "v3-roundtrip": "could not extract schema"
210 }
211 },
212 {
213 "description": "an invalid URI with comma in scheme",
214 "data": "bar,baz:foo",
215 "valid": false,
216 "skip": {
217 "v3-roundtrip": "could not extract schema"
218 }
219 }
220 ]
221 }
222 ]