Skip to content

Commit

Permalink
api: move string-only JSON examples to the spec. YAML
Browse files Browse the repository at this point in the history
Workaround redocly rendering issue which omits the quotes, which makes
it an invalid JSON string.
  • Loading branch information
philipnbbc committed Nov 21, 2024
1 parent c3971b9 commit f326e28
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
18 changes: 10 additions & 8 deletions api/TimeAddressableMediaStore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1024,8 +1024,8 @@ paths:
description: ""
content:
application/json:
example:
$ref: examples/flow-tag-get-200.json
example: |
"full"
schema:
type: string
"404":
Expand All @@ -1039,8 +1039,8 @@ paths:
requestBody:
content:
application/json:
example:
$ref: examples/flow-tag-put.json
example: |
"proxy"
schema:
type: string
required: true
Expand Down Expand Up @@ -1096,8 +1096,10 @@ paths:
description: ""
content:
application/json:
example:
$ref: examples/flow-description-get-200.json
example: |
"video capture"
schema:
type: string
"404":
description: The requested flow does not exist.
put:
Expand All @@ -1109,8 +1111,8 @@ paths:
requestBody:
content:
application/json:
example:
$ref: examples/flow-description-put.json
example: |
"Big Buck Bunny video-only capture"
schema:
type: string
required: true
Expand Down
1 change: 0 additions & 1 deletion api/examples/flow-description-get-200.json

This file was deleted.

1 change: 0 additions & 1 deletion api/examples/flow-description-put.json

This file was deleted.

1 change: 0 additions & 1 deletion api/examples/flow-tag-get-200.json

This file was deleted.

1 change: 0 additions & 1 deletion api/examples/flow-tag-put.json

This file was deleted.

0 comments on commit f326e28

Please sign in to comment.