Debian Codegraph @

share/tests/v1/format/iri.json

raw
1 [
2 {
3 "description": "validation of IRIs",
4 "schema": {
5 "$schema": "https://json-schema.org/v1",
6 "format": "iri"
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 with anchor tag",
41 "data": "http://ƒøø.ßår/?∂éœ=πîx#πîüx",
42 "valid": true
43 },
44 {
45 "description": "a valid IRI with anchor tag and parentheses",
46 "data": "http://ƒøø.com/blah_(wîkïpédiå)_blah#ßité-1",
47 "valid": true
48 },
49 {
50 "description": "a valid IRI with URL-encoded stuff",
51 "data": "http://ƒøø.ßår/?q=Test%20URL-encoded%20stuff",
52 "valid": true
53 },
54 {
55 "description": "a valid IRI with many special characters",
56 "data": "http://-.~_!$&'()*+,;=:%40:80%2f::::::@example.com",
57 "valid": true
58 },
59 {
60 "description": "a valid IRI based on IPv6",
61 "data": "http://[2001:0db8:85a3:0000:0000:8a2e:0370:7334]",
62 "valid": true
63 },
64 {
65 "description": "an invalid IRI based on IPv6",
66 "data": "http://2001:0db8:85a3:0000:0000:8a2e:0370:7334",
67 "valid": false
68 },
69 {
70 "description": "an invalid relative IRI Reference",
71 "data": "/abc",
72 "valid": false
73 },
74 {
75 "description": "an invalid IRI",
76 "data": "\\\\WINDOWS\\filëßåré",
77 "valid": false
78 },
79 {
80 "description": "an invalid IRI though valid IRI reference",
81 "data": "âππ",
82 "valid": false
83 }
84 ]
85 }
86 ]