Skip to content

Commit 5068d03

Browse files
committed
Fix a couple of mistakes in the URI template examples.
- Accidental swap of O with 0. - Invalid template syntax {/+id64} changed to /{+id64} - Added examples using numeric ids and id64 variable.
1 parent 3fda23d commit 5068d03

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

Overview.bs

+12-2
Original file line numberDiff line numberDiff line change
@@ -1872,15 +1872,25 @@ Some example inputs and the corresponding expansions:
18721872
<tr>
18731873
<td>//foo.bar{/d1,d2,d3,id}</td>
18741874
<td>àbc</td>
1875-
<td>//foo.bar/0/0/4/OEG64OO</td>
1875+
<td>//foo.bar/O/O/4/OEG64OO</td>
1876+
</tr>
1877+
<tr>
1878+
<td>//foo.bar{/id64}</td>
1879+
<td>14,000,000</td>
1880+
<td>//foo.bar/1Z-A</td>
1881+
</tr>
1882+
<tr>
1883+
<td>//foo.bar{/id64}</td>
1884+
<td>17,000,000</td>
1885+
<td>//foo.bar/AQNmQA%3D%3D</td>
18761886
</tr>
18771887
<tr>
18781888
<td>//foo.bar{/id64}</td>
18791889
<td>àbc</td>
18801890
<td>//foo.bar/w6BiYw%3D%3D</td>
18811891
</tr>
18821892
<tr>
1883-
<td>//foo.bar{/+id64}</td>
1893+
<td>//foo.bar/{+id64}</td>
18841894
<td>àbcd</td>
18851895
<td>//foo.bar/w6BiY2Q=</td>
18861896
</tr>

Overview.html

+13-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta content="WD" name="w3c-status">
77
<meta content="Bikeshed version d765c696b, updated Fri Mar 8 15:58:52 2024 -0800" name="generator">
88
<link href="https://www.w3.org/TR/IFT/" rel="canonical">
9-
<meta content="f8ae95814f7c787037b1b027cd66cbb49962bcc2" name="revision">
9+
<meta content="3fda23d1e46095fde9054426c2e48ca5cf3a6da6" name="revision">
1010
<meta content="dark light" name="color-scheme">
1111
<style>
1212
.conform:hover {background: #31668f; color: white}
@@ -2324,8 +2324,8 @@ <h4 class="heading settled" data-level="5.2.3" id="uri-templates"><span class="s
23242324
(For example, when the integer is less than 256 only one byte is encoded.) When the input id is
23252325
a string its raw bytes are encoded as <a href="https://www.rfc-editor.org/rfc/rfc4648#section-5">base64url</a>.
23262326
</table>
2327-
<div class="example" id="example-73881657">
2328-
<a class="self-link" href="#example-73881657"></a>
2327+
<div class="example" id="example-96830d51">
2328+
<a class="self-link" href="#example-96830d51"></a>
23292329
<p>Some example inputs and the corresponding expansions:</p>
23302330
<table>
23312331
<tbody>
@@ -2356,13 +2356,21 @@ <h4 class="heading settled" data-level="5.2.3" id="uri-templates"><span class="s
23562356
<tr>
23572357
<td>//foo.bar{/d1,d2,d3,id}
23582358
<td>àbc
2359-
<td>//foo.bar/0/0/4/OEG64OO
2359+
<td>//foo.bar/O/O/4/OEG64OO
2360+
<tr>
2361+
<td>//foo.bar{/id64}
2362+
<td>14,000,000
2363+
<td>//foo.bar/1Z-A
2364+
<tr>
2365+
<td>//foo.bar{/id64}
2366+
<td>17,000,000
2367+
<td>//foo.bar/AQNmQA%3D%3D
23602368
<tr>
23612369
<td>//foo.bar{/id64}
23622370
<td>àbc
23632371
<td>//foo.bar/w6BiYw%3D%3D
23642372
<tr>
2365-
<td>//foo.bar{/+id64}
2373+
<td>//foo.bar/{+id64}
23662374
<td>àbcd
23672375
<td>//foo.bar/w6BiY2Q=
23682376
</table>

0 commit comments

Comments
 (0)