Debian Codegraph @

share/tests/v1/format/iri-reference.json

raw
1 [
2 {
3 "description": "validation of IRI References",
4 "schema": {
5 "$schema": "https://json-schema.org/v1",
6 "format": "iri-reference"
7 },
8 "tests": [
9 {
10 "description": "all string formats ignore integers",
11 "data": 12,
12 "valid": true
13 },
14 {
15 "description": "all string formats ignore floats",
16 "data": 13.7,
17 "valid": true
18 },
19 {
20 "description": "all string formats ignore objects",
21 "data": {},
22 "valid": true
23 },
24 {
25 "description": "all string formats ignore arrays",
26 "data": [],
27 "valid": true
28 },
29 {
30 "description": "all string formats ignore booleans",
31 "data": false,
32 "valid": true
33 },
34 {
35 "description": "all string formats ignore nulls",
36 "data": null,
37 "valid": true
38 },
39 {
40 "description": "a valid IRI",
41 "data": "http://ƒøø.ßår/?∂éœ=πîx#πîüx",
42 "valid": true
43 },
44 {
45 "description": "a valid protocol-relative IRI Reference",
46 "data": "//ƒøø.ßår/?∂éœ=πîx#πîüx",
47 "valid": true
48 },
49 {
50 "description": "a valid relative IRI Reference",
51 "data": "/âππ",
52 "valid": true
53 },
54 {
55 "description": "an invalid IRI Reference",
56 "data": "\\\\WINDOWS\\filëßåré",
57 "valid": false
58 },
59 {
60 "description": "a valid IRI Reference",
61 "data": "âππ",
62 "valid": true
63 },
64 {
65 "description": "a valid IRI fragment",
66 "data": "#ƒrägmênt",
67 "valid": true
68 },
69 {
70 "description": "an invalid IRI fragment",
71 "data": "#ƒräg\\mênt",
72 "valid": false
73 },
74 {
75 "description": "an embedded IPv4 with a leading zero is invalid",
76 "data": "//[::ffff:192.168.0.01]/p",
77 "valid": false
78 },
79 {
80 "description": "a valid protocol-relative IRI Reference with a compressed IPv6 host",
81 "data": "//[2001:db8::1]/p",
82 "valid": true
83 },
84 {
85 "description": "a valid relative IRI Reference with a supplementary-plane character",
86 "data": "/âππ/𐌀",
87 "valid": true
88 },
89 {
90 "description": "a query-only IRI Reference with a supplementary private-use char",
91 "data": "?q=󰀀",
92 "valid": true
93 },
94 {
95 "description": "a trailing newline after a valid IRI Reference is invalid",
96 "data": "/âππ\n",
97 "valid": false
98 }
99 ]
100 }
101 ]