Skip to content

Commit 5f81eb3

Browse files
authored
Handle urlencoded characters in anchor refs (coveooss#126)
1 parent 4fcc97c commit 5f81eb3

File tree

10 files changed

+935
-0
lines changed

10 files changed

+935
-0
lines changed

docs/Examples.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2934,5 +2934,63 @@ the description of an attribute
29342934
[examples/examples_md_nested_with_badges/with_special_chars.md](examples/examples_md_nested_with_badges/with_special_chars.md ':include')
29352935
</details>
29362936

2937+
## --with_urlencoded_anchor--
2938+
### with_urlencoded_anchor
2939+
2940+
2941+
<details>
2942+
<summary>Json schema - Click here to expand source code...</summary>
2943+
2944+
[examples/cases/with_urlencoded_anchor.json](examples/cases/with_urlencoded_anchor.json ':include :type=code')
2945+
</details>
2946+
2947+
2948+
<details>
2949+
<summary>JS template - Click here to expand the rendered result...</summary>
2950+
<a href="https://coveooss.github.io/json-schema-for-humans/examples/examples_js_default/with_urlencoded_anchor.html" target="_blank">Open it in full page</a>
2951+
2952+
[examples/examples_js_default/with_urlencoded_anchor.html](examples/examples_js_default/with_urlencoded_anchor.html ':include :type=iframe width=100% height=400px')
2953+
</details>
2954+
2955+
2956+
<details>
2957+
<summary>Flat template - Click here to expand the rendered result...</summary>
2958+
<a href="https://coveooss.github.io/json-schema-for-humans/examples/examples_flat_default/with_urlencoded_anchor.html" target="_blank">Open it in full page</a>
2959+
2960+
[examples/examples_flat_default/with_urlencoded_anchor.html](examples/examples_flat_default/with_urlencoded_anchor.html ':include :type=iframe width=100% height=400px')
2961+
</details>
2962+
2963+
2964+
<details>
2965+
<summary>Markdown without badge template - Click here to expand the rendered result...</summary>
2966+
<a href="https://github.com/coveooss/json-schema-for-humans/blob/main/docs/examples/examples_md_default/with_urlencoded_anchor.md" target="_blank">Open it in github</a>
2967+
2968+
[examples/examples_md_default/with_urlencoded_anchor.md](examples/examples_md_default/with_urlencoded_anchor.md ':include')
2969+
</details>
2970+
2971+
2972+
<details>
2973+
<summary>Markdown with badges template - Click here to expand the rendered result...</summary>
2974+
<a href="https://github.com/coveooss/json-schema-for-humans/blob/main/docs/examples/examples_md_with_badges/with_urlencoded_anchor.md" target="_blank">Open it in github</a>
2975+
2976+
[examples/examples_md_with_badges/with_urlencoded_anchor.md](examples/examples_md_with_badges/with_urlencoded_anchor.md ':include')
2977+
</details>
2978+
2979+
2980+
<details>
2981+
<summary>Nested Markdown without badges template - Click here to expand the rendered result...</summary>
2982+
<a href="https://github.com/coveooss/json-schema-for-humans/blob/main/docs/examples/examples_md_nested_default/with_urlencoded_anchor.md" target="_blank">Open it in github</a>
2983+
2984+
[examples/examples_md_nested_default/with_urlencoded_anchor.md](examples/examples_md_nested_default/with_urlencoded_anchor.md ':include')
2985+
</details>
2986+
2987+
2988+
<details>
2989+
<summary>Nested Markdown with badges template - Click here to expand the rendered result...</summary>
2990+
<a href="https://github.com/coveooss/json-schema-for-humans/blob/main/docs/examples/examples_md_nested_with_badges/with_urlencoded_anchor.md" target="_blank">Open it in github</a>
2991+
2992+
[examples/examples_md_nested_with_badges/with_urlencoded_anchor.md](examples/examples_md_nested_with_badges/with_urlencoded_anchor.md ':include')
2993+
</details>
2994+
29372995

29382996
<!-- select:end -->
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"definitions": {
4+
"dss2-SigningTimeInfoType": {
5+
"$xsd-type": "SigningTimeInfoType",
6+
"$xsd-full-type": "dss2:SigningTimeInfoType",
7+
"type": "object",
8+
"properties": {
9+
"signingTime": {
10+
"type": "integer",
11+
"format": "utc-millisec"
12+
},
13+
"signingTimeBounds": {
14+
"$ref": "#/definitions/dss2-SigningTimeInfoType%3ASigningTimeBoundaries"
15+
}
16+
},
17+
"required": [
18+
"signingTime"
19+
]
20+
},
21+
"dss2-SigningTimeInfoType:SigningTimeBoundaries": {
22+
"$xsd-type": "",
23+
"$xsd-full-type": "",
24+
"type": "object",
25+
"properties": {
26+
"lowerBound": {
27+
"type": "integer",
28+
"format": "utc-millisec"
29+
},
30+
"upperBound": {
31+
"type": "integer",
32+
"format": "utc-millisec"
33+
}
34+
}
35+
}
36+
},
37+
"type": "object",
38+
"properties": {
39+
"signingTimeInfo": {
40+
"$ref": "#/definitions/dss2-SigningTimeInfoType"
41+
}
42+
}
43+
}
Lines changed: 268 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,268 @@
1+
2+
3+
<!DOCTYPE html>
4+
<html lang="en">
5+
<head>
6+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Overpass:300,400,600,800">
7+
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
8+
<link rel="stylesheet" type="text/css" href="schema_doc.css">
9+
<meta charset="utf-8"/>
10+
<title>Schema Docs</title>
11+
</head>
12+
<body id="root">
13+
14+
<div class="breadcrumbs"></div><span class="badge badge-dark value-type">Type: object</span><br/>
15+
16+
17+
18+
19+
20+
21+
22+
23+
24+
25+
26+
27+
28+
29+
30+
31+
32+
33+
34+
<div class="card">
35+
<div class="card-header" id="signingTimeInfo">
36+
<h2 class="mb-0">
37+
<a href="#signingTimeInfo"><span class="property-name">signingTimeInfo</span></a></h2>
38+
</div>
39+
40+
<div class="card-body property-definition-div">
41+
42+
<div class="breadcrumbs">root
43+
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-arrow-right-short" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
44+
<path
45+
fill-rule="evenodd"
46+
d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"
47+
/>
48+
</svg>
49+
<a href="#signingTimeInfo">signingTimeInfo</a></div><span class="badge badge-dark value-type">Type: object</span><br/>
50+
51+
52+
53+
54+
55+
56+
57+
58+
59+
60+
61+
62+
63+
64+
65+
66+
67+
68+
69+
70+
71+
<div class="card">
72+
<div class="card-header" id="signingTimeInfo_signingTime">
73+
<h2 class="mb-0">
74+
<a href="#signingTimeInfo_signingTime"><span class="property-name">signingTime</span></a> <span class="badge badge-warning required-property">Required</span></h2>
75+
</div>
76+
77+
<div class="card-body property-definition-div">
78+
79+
<div class="breadcrumbs">root
80+
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-arrow-right-short" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
81+
<path
82+
fill-rule="evenodd"
83+
d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"
84+
/>
85+
</svg>
86+
<a href="#signingTimeInfo">signingTimeInfo</a>
87+
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-arrow-right-short" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
88+
<path
89+
fill-rule="evenodd"
90+
d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"
91+
/>
92+
</svg>
93+
<a href="#signingTimeInfo_signingTime">signingTime</a></div><span class="badge badge-dark value-type">Type: integer</span><br/>
94+
95+
96+
97+
98+
99+
100+
101+
102+
103+
104+
105+
106+
107+
108+
109+
110+
111+
112+
</div>
113+
</div>
114+
115+
<div class="card">
116+
<div class="card-header" id="signingTimeInfo_signingTimeBounds">
117+
<h2 class="mb-0">
118+
<a href="#signingTimeInfo_signingTimeBounds"><span class="property-name">signingTimeBounds</span></a></h2>
119+
</div>
120+
121+
<div class="card-body property-definition-div">
122+
123+
<div class="breadcrumbs">root
124+
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-arrow-right-short" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
125+
<path
126+
fill-rule="evenodd"
127+
d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"
128+
/>
129+
</svg>
130+
<a href="#signingTimeInfo">signingTimeInfo</a>
131+
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-arrow-right-short" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
132+
<path
133+
fill-rule="evenodd"
134+
d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"
135+
/>
136+
</svg>
137+
<a href="#signingTimeInfo_signingTimeBounds">signingTimeBounds</a></div><span class="badge badge-dark value-type">Type: object</span><br/>
138+
139+
140+
141+
142+
143+
144+
145+
146+
147+
148+
149+
150+
151+
152+
153+
154+
155+
156+
157+
158+
159+
<div class="card">
160+
<div class="card-header" id="signingTimeInfo_signingTimeBounds_lowerBound">
161+
<h2 class="mb-0">
162+
<a href="#signingTimeInfo_signingTimeBounds_lowerBound"><span class="property-name">lowerBound</span></a></h2>
163+
</div>
164+
165+
<div class="card-body property-definition-div">
166+
167+
<div class="breadcrumbs">root
168+
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-arrow-right-short" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
169+
<path
170+
fill-rule="evenodd"
171+
d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"
172+
/>
173+
</svg>
174+
<a href="#signingTimeInfo">signingTimeInfo</a>
175+
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-arrow-right-short" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
176+
<path
177+
fill-rule="evenodd"
178+
d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"
179+
/>
180+
</svg>
181+
<a href="#signingTimeInfo_signingTimeBounds">signingTimeBounds</a>
182+
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-arrow-right-short" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
183+
<path
184+
fill-rule="evenodd"
185+
d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"
186+
/>
187+
</svg>
188+
<a href="#signingTimeInfo_signingTimeBounds_lowerBound">lowerBound</a></div><span class="badge badge-dark value-type">Type: integer</span><br/>
189+
190+
191+
192+
193+
194+
195+
196+
197+
198+
199+
200+
201+
202+
203+
204+
205+
206+
207+
</div>
208+
</div>
209+
210+
<div class="card">
211+
<div class="card-header" id="signingTimeInfo_signingTimeBounds_upperBound">
212+
<h2 class="mb-0">
213+
<a href="#signingTimeInfo_signingTimeBounds_upperBound"><span class="property-name">upperBound</span></a></h2>
214+
</div>
215+
216+
<div class="card-body property-definition-div">
217+
218+
<div class="breadcrumbs">root
219+
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-arrow-right-short" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
220+
<path
221+
fill-rule="evenodd"
222+
d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"
223+
/>
224+
</svg>
225+
<a href="#signingTimeInfo">signingTimeInfo</a>
226+
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-arrow-right-short" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
227+
<path
228+
fill-rule="evenodd"
229+
d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"
230+
/>
231+
</svg>
232+
<a href="#signingTimeInfo_signingTimeBounds">signingTimeBounds</a>
233+
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-arrow-right-short" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
234+
<path
235+
fill-rule="evenodd"
236+
d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"
237+
/>
238+
</svg>
239+
<a href="#signingTimeInfo_signingTimeBounds_upperBound">upperBound</a></div><span class="badge badge-dark value-type">Type: integer</span><br/>
240+
241+
242+
243+
244+
245+
246+
247+
248+
249+
250+
251+
252+
253+
254+
255+
256+
257+
258+
</div>
259+
</div>
260+
</div>
261+
</div>
262+
</div>
263+
</div>
264+
265+
<footer>
266+
<p class="generated-by-footer">Generated using <a href="https://github.com/coveooss/json-schema-for-humans">json-schema-for-humans</a></p>
267+
</footer></body>
268+
</html>

0 commit comments

Comments
 (0)