Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions draft-ietf-oauth-status-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,13 +361,13 @@ This section defines the data structure for a JSON-encoded Status List:
The following example illustrates the JSON representation of the Status List with `bits`=1 from the examples above:

~~~~~~~~~~
{::include examples/status_list_encoding_json}
{::include examples/status_list_encoding_json.md}
~~~~~~~~~~

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

~~~~~~~~~~
{::include examples/status_list_encoding2_json}
{::include examples/status_list_encoding2_json.md}
~~~~~~~~~~

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

~~~~~~~~~~
{::include examples/status_list_encoding_cbor}
{::include examples/status_list_encoding_cbor.md}
~~~~~~~~~~

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

~~~~~~~~~~
{::include examples/status_list_encoding_cbor_diag}
{::include examples/status_list_encoding_cbor_diag.md}
~~~~~~~~~~

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

~~~~~~~~~~
{::include examples/status_list_jwt}
{::include examples/status_list_jwt.md}
~~~~~~~~~~

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

~~~~~~~~~~
{::include examples/status_list_cwt}
{::include examples/status_list_cwt.md}
~~~~~~~~~~

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

~~~~~~~~~~
{::include examples/status_list_cwt_diag}
{::include examples/status_list_cwt_diag.md}
~~~~~~~~~~

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

~~~~~~~~~~
{::include examples/referenced_token_cwt}
{::include examples/referenced_token_cwt.md}
~~~~~~~~~~

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

~~~~~~~~~~
{::include examples/referenced_token_cwt_diag}
{::include examples/referenced_token_cwt_diag.md}
~~~~~~~~~~

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

{::include examples/status_list_jwt_raw}
{::include examples/status_list_jwt_raw.md}
~~~

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

{::include examples/status_list_jwt_raw}
{::include examples/status_list_jwt_raw.md}
~~~

# Status List Aggregation {#aggregation}
Expand Down Expand Up @@ -1616,13 +1616,13 @@ status[1000345] = 0b1
JSON encoding:

~~~~~~~~~~
{::include examples/status_list_encoding1_long_json}
{::include examples/status_list_encoding1_long_json.md}
~~~~~~~~~~

CBOR encoding:

~~~~~~~~~~
{::include examples/status_list_encoding1_long_cbor}
{::include examples/status_list_encoding1_long_cbor.md}
~~~~~~~~~~

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

~~~~~~~~~~
{::include examples/status_list_encoding2_long_json}
{::include examples/status_list_encoding2_long_json.md}
~~~~~~~~~~

CBOR encoding:

~~~~~~~~~~
{::include examples/status_list_encoding2_long_cbor}
{::include examples/status_list_encoding2_long_cbor.md}
~~~~~~~~~~

## 4 bit Status List
Expand Down Expand Up @@ -1680,13 +1680,13 @@ status[1030205] = 0b1111
JSON encoding:

~~~~~~~~~~
{::include examples/status_list_encoding4_json}
{::include examples/status_list_encoding4_json.md}
~~~~~~~~~~

CBOR encoding:

~~~~~~~~~~
{::include examples/status_list_encoding4_cbor}
{::include examples/status_list_encoding4_cbor.md}
~~~~~~~~~~

## 8 bit Status List
Expand Down Expand Up @@ -1955,13 +1955,13 @@ status[19535] = 0b11111111
JSON encoding:

~~~~~~~~~~
{::include examples/status_list_encoding8_json}
{::include examples/status_list_encoding8_json.md}
~~~~~~~~~~

CBOR encoding:

~~~~~~~~~~
{::include examples/status_list_encoding8_cbor}
{::include examples/status_list_encoding8_cbor.md}
~~~~~~~~~~


Expand Down
2 changes: 1 addition & 1 deletion src/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ def printCBORDiagnostics(input: bytes) -> str:


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