From 1fbbf2caab73c85d8b1bc571130f5dab2825a7ce Mon Sep 17 00:00:00 2001 From: Alok Nerurkar Date: Thu, 10 Jun 2021 15:41:40 +0530 Subject: [PATCH] fix: api spec --- openapi/Swarm.yaml | 8 ++++++++ openapi/SwarmCommon.yaml | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/openapi/Swarm.yaml b/openapi/Swarm.yaml index 851b70b37af..2615e1bfd95 100644 --- a/openapi/Swarm.yaml +++ b/openapi/Swarm.yaml @@ -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": @@ -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: @@ -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": @@ -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: diff --git a/openapi/SwarmCommon.yaml b/openapi/SwarmCommon.yaml index 8121a44bf0e..4bb3a024561 100644 --- a/openapi/SwarmCommon.yaml +++ b/openapi/SwarmCommon.yaml @@ -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: