Skip to content

Commit

Permalink
fix: api spec
Browse files Browse the repository at this point in the history
  • Loading branch information
aloknerurkar committed Jun 10, 2021
1 parent 12fae19 commit 1fbbf2c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions openapi/Swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ paths:
$ref: "SwarmCommon.yaml#/components/schemas/ReferenceResponse"
"400":
$ref: "SwarmCommon.yaml#/components/responses/400"
"402":
$ref: "SwarmCommon.yaml#/components/responses/402"
"403":
$ref: "SwarmCommon.yaml#/components/responses/403"
"500":
Expand Down Expand Up @@ -153,6 +155,8 @@ paths:
$ref: "SwarmCommon.yaml#/components/schemas/Status"
"400":
$ref: "SwarmCommon.yaml#/components/responses/400"
"402":
$ref: "SwarmCommon.yaml#/components/responses/402"
"500":
$ref: "SwarmCommon.yaml#/components/responses/500"
default:
Expand Down Expand Up @@ -216,6 +220,8 @@ paths:
$ref: "SwarmCommon.yaml#/components/schemas/ReferenceResponse"
"400":
$ref: "SwarmCommon.yaml#/components/responses/400"
"402":
$ref: "SwarmCommon.yaml#/components/responses/402"
"403":
$ref: "SwarmCommon.yaml#/components/responses/403"
"500":
Expand Down Expand Up @@ -589,6 +595,8 @@ paths:
description: Subscribed to topic
"400":
$ref: "SwarmCommon.yaml#/components/responses/400"
"402":
$ref: "SwarmCommon.yaml#/components/responses/402"
"500":
$ref: "SwarmCommon.yaml#/components/responses/500"
default:
Expand Down
6 changes: 6 additions & 0 deletions openapi/SwarmCommon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,12 @@ components:
application/problem+json:
schema:
$ref: "#/components/schemas/ProblemDetails"
"402":
description: Payment Required
content:
application/problem+json:
schema:
$ref: "#/components/schemas/ProblemDetails"
"403":
description: Forbidden
content:
Expand Down

0 comments on commit 1fbbf2c

Please sign in to comment.