Commit 41d3cd5f authored by mrekucci's avatar mrekucci Committed by GitHub

chore(openapi): add missing HTTP responses (#2387)

parent 234d0429
...@@ -666,6 +666,12 @@ components: ...@@ -666,6 +666,12 @@ components:
application/problem+json: application/problem+json:
schema: schema:
$ref: "#/components/schemas/ProblemDetails" $ref: "#/components/schemas/ProblemDetails"
"429":
description: Too many requests
content:
application/problem+json:
schema:
$ref: "#/components/schemas/ProblemDetails"
"500": "500":
description: Internal Server Error description: Internal Server Error
content: content:
......
...@@ -538,6 +538,8 @@ paths: ...@@ -538,6 +538,8 @@ paths:
$ref: "SwarmCommon.yaml#/components/schemas/TransactionResponse" $ref: "SwarmCommon.yaml#/components/schemas/TransactionResponse"
"404": "404":
$ref: "SwarmCommon.yaml#/components/responses/404" $ref: "SwarmCommon.yaml#/components/responses/404"
"429":
$ref: "SwarmCommon.yaml#/components/responses/429"
"500": "500":
$ref: "SwarmCommon.yaml#/components/responses/500" $ref: "SwarmCommon.yaml#/components/responses/500"
default: default:
...@@ -864,6 +866,8 @@ paths: ...@@ -864,6 +866,8 @@ paths:
$ref: "SwarmCommon.yaml#/components/schemas/BatchIDResponse" $ref: "SwarmCommon.yaml#/components/schemas/BatchIDResponse"
"400": "400":
$ref: "SwarmCommon.yaml#/components/responses/400" $ref: "SwarmCommon.yaml#/components/responses/400"
"429":
$ref: "SwarmCommon.yaml#/components/responses/429"
"500": "500":
$ref: "SwarmCommon.yaml#/components/responses/500" $ref: "SwarmCommon.yaml#/components/responses/500"
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment