Skip to content

Commit d9544ba

Browse files
authored
Merge pull request #323 from oauth-wg/fix/switch-file-ending
fix ietf tooling by switching to .md for generated files
2 parents 579bf5d + 6a7502f commit d9544ba

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

draft-ietf-oauth-status-list.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -361,13 +361,13 @@ This section defines the data structure for a JSON-encoded Status List:
361361
The following example illustrates the JSON representation of the Status List with `bits`=1 from the examples above:
362362

363363
~~~~~~~~~~
364-
{::include examples/status_list_encoding_json}
364+
{::include examples/status_list_encoding_json.md}
365365
~~~~~~~~~~
366366

367367
The following example illustrates the JSON representation of the Status List with `bits`=2 from the examples above:
368368

369369
~~~~~~~~~~
370-
{::include examples/status_list_encoding2_json}
370+
{::include examples/status_list_encoding2_json.md}
371371
~~~~~~~~~~
372372

373373
See section [](#test-vectors) for more test vectors.
@@ -394,13 +394,13 @@ StatusList = {
394394
The following example illustrates the CBOR representation of the Status List in Hex:
395395

396396
~~~~~~~~~~
397-
{::include examples/status_list_encoding_cbor}
397+
{::include examples/status_list_encoding_cbor.md}
398398
~~~~~~~~~~
399399

400400
The following is the CBOR Annotated Hex output of the example above:
401401

402402
~~~~~~~~~~
403-
{::include examples/status_list_encoding_cbor_diag}
403+
{::include examples/status_list_encoding_cbor_diag.md}
404404
~~~~~~~~~~
405405

406406
See section [](#test-vectors) for more test vectors.
@@ -440,7 +440,7 @@ The following additional rules apply:
440440
The following is a non-normative example of a Status List Token in JWT format:
441441

442442
~~~~~~~~~~
443-
{::include examples/status_list_jwt}
443+
{::include examples/status_list_jwt.md}
444444
~~~~~~~~~~
445445

446446
## Status List Token in CWT Format {#status-list-token-cwt}
@@ -472,13 +472,13 @@ The following additional rules apply:
472472
The following is a non-normative example of a Status List Token in CWT format in Hex:
473473

474474
~~~~~~~~~~
475-
{::include examples/status_list_cwt}
475+
{::include examples/status_list_cwt.md}
476476
~~~~~~~~~~
477477

478478
The following is the CBOR Annotated Hex output of the example above:
479479

480480
~~~~~~~~~~
481-
{::include examples/status_list_cwt_diag}
481+
{::include examples/status_list_cwt_diag.md}
482482
~~~~~~~~~~
483483

484484
# Referenced Token {#referenced-token}
@@ -584,13 +584,13 @@ Application of additional restrictions and policies are at the discretion of the
584584
The following is a non-normative example of a Referenced Token in CWT format in Hex:
585585

586586
~~~~~~~~~~
587-
{::include examples/referenced_token_cwt}
587+
{::include examples/referenced_token_cwt.md}
588588
~~~~~~~~~~
589589

590590
The following is the CBOR Annotated Hex output of the example above:
591591

592592
~~~~~~~~~~
593-
{::include examples/referenced_token_cwt_diag}
593+
{::include examples/referenced_token_cwt_diag.md}
594594
~~~~~~~~~~
595595

596596
### ISO mdoc {#referenced-token-mdoc}
@@ -806,7 +806,7 @@ The following is a non-normative example of a response with a Status List Token
806806
HTTP/1.1 200 OK
807807
Content-Type: application/statuslist+jwt
808808

809-
{::include examples/status_list_jwt_raw}
809+
{::include examples/status_list_jwt_raw.md}
810810
~~~
811811

812812
## Validation Rules
@@ -857,7 +857,7 @@ The following is a non-normative example of a response for the above Request:
857857
HTTP/1.1 200 OK
858858
Content-Type: application/statuslist+jwt
859859

860-
{::include examples/status_list_jwt_raw}
860+
{::include examples/status_list_jwt_raw.md}
861861
~~~
862862

863863
# Status List Aggregation {#aggregation}
@@ -1616,13 +1616,13 @@ status[1000345] = 0b1
16161616
JSON encoding:
16171617

16181618
~~~~~~~~~~
1619-
{::include examples/status_list_encoding1_long_json}
1619+
{::include examples/status_list_encoding1_long_json.md}
16201620
~~~~~~~~~~
16211621

16221622
CBOR encoding:
16231623

16241624
~~~~~~~~~~
1625-
{::include examples/status_list_encoding1_long_cbor}
1625+
{::include examples/status_list_encoding1_long_cbor.md}
16261626
~~~~~~~~~~
16271627

16281628
## 2 bit Status List
@@ -1646,13 +1646,13 @@ status[1000345] = 0b11
16461646
JSON encoding:
16471647

16481648
~~~~~~~~~~
1649-
{::include examples/status_list_encoding2_long_json}
1649+
{::include examples/status_list_encoding2_long_json.md}
16501650
~~~~~~~~~~
16511651

16521652
CBOR encoding:
16531653

16541654
~~~~~~~~~~
1655-
{::include examples/status_list_encoding2_long_cbor}
1655+
{::include examples/status_list_encoding2_long_cbor.md}
16561656
~~~~~~~~~~
16571657

16581658
## 4 bit Status List
@@ -1680,13 +1680,13 @@ status[1030205] = 0b1111
16801680
JSON encoding:
16811681

16821682
~~~~~~~~~~
1683-
{::include examples/status_list_encoding4_json}
1683+
{::include examples/status_list_encoding4_json.md}
16841684
~~~~~~~~~~
16851685

16861686
CBOR encoding:
16871687

16881688
~~~~~~~~~~
1689-
{::include examples/status_list_encoding4_cbor}
1689+
{::include examples/status_list_encoding4_cbor.md}
16901690
~~~~~~~~~~
16911691

16921692
## 8 bit Status List
@@ -1955,13 +1955,13 @@ status[19535] = 0b11111111
19551955
JSON encoding:
19561956

19571957
~~~~~~~~~~
1958-
{::include examples/status_list_encoding8_json}
1958+
{::include examples/status_list_encoding8_json.md}
19591959
~~~~~~~~~~
19601960

19611961
CBOR encoding:
19621962

19631963
~~~~~~~~~~
1964-
{::include examples/status_list_encoding8_cbor}
1964+
{::include examples/status_list_encoding8_cbor.md}
19651965
~~~~~~~~~~
19661966

19671967

src/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ def printCBORDiagnostics(input: bytes) -> str:
6262

6363

6464
def outputFile(file_name: str, input: str):
65-
with open(file_name, "w") as file:
65+
with open(file_name+".md", "w") as file:
6666
file.write(input)

0 commit comments

Comments
 (0)