Debian Codegraph @

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

raw
1 [
2 {
3 "description": "validation of IRIs",
4 "schema": {
5 "$schema": "https://json-schema.org/draft/2019-09/schema",
6 "format": "iri"
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 IRI with anchor tag",
62 "data": "http://ƒøø.ßår/?∂éœ=πîx#πîüx",
63 "valid": true,
64 "skip": {
65 "v3-roundtrip": "could not extract schema"
66 }
67 },
68 {
69 "description": "a valid IRI with anchor tag and parentheses",
70 "data": "http://ƒøø.com/blah_(wîkïpédiå)_blah#ßité-1",
71 "valid": true,
72 "skip": {
73 "v3-roundtrip": "could not extract schema"
74 }
75 },
76 {
77 "description": "a valid IRI with URL-encoded stuff",
78 "data": "http://ƒøø.ßår/?q=Test%20URL-encoded%20stuff",
79 "valid": true,
80 "skip": {
81 "v3-roundtrip": "could not extract schema"
82 }
83 },
84 {
85 "description": "a valid IRI with many special characters",
86 "data": "http://-.~_!$\u0026'()*+,;=:%40:80%2f::::::@example.com",
87 "valid": true,
88 "skip": {
89 "v3-roundtrip": "could not extract schema"
90 }
91 },
92 {
93 "description": "a valid IRI based on IPv6",
94 "data": "http://[2001:0db8:85a3:0000:0000:8a2e:0370:7334]",
95 "valid": true,
96 "skip": {
97 "v3-roundtrip": "could not extract schema"
98 }
99 },
100 {
101 "description": "an invalid IRI based on IPv6",
102 "data": "http://2001:0db8:85a3:0000:0000:8a2e:0370:7334",
103 "valid": false,
104 "skip": {
105 "v3": "unexpected success",
106 "v3-roundtrip": "could not extract schema"
107 }
108 },
109 {
110 "description": "an invalid relative IRI Reference",
111 "data": "/abc",
112 "valid": false,
113 "skip": {
114 "v3-roundtrip": "could not extract schema"
115 }
116 },
117 {
118 "description": "an invalid IRI",
119 "data": "\\\\WINDOWS\\filëßåré",
120 "valid": false,
121 "skip": {
122 "v3-roundtrip": "could not extract schema"
123 }
124 },
125 {
126 "description": "an invalid IRI though valid IRI reference",
127 "data": "âππ",
128 "valid": false,
129 "skip": {
130 "v3-roundtrip": "could not extract schema"
131 }
132 }
133 ]
134 }
135 ]