From 16cc17c180873dcb4ba5e8128cc896ad8414d75d Mon Sep 17 00:00:00 2001 From: Adam Gibson Date: Fri, 28 Jan 2022 13:37:03 +0000 Subject: [PATCH] address linting complaints of openapi for RPC spec file --- docs/api/wallet-rpc.yaml | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/docs/api/wallet-rpc.yaml b/docs/api/wallet-rpc.yaml index 6e77e31..afcea56 100644 --- a/docs/api/wallet-rpc.yaml +++ b/docs/api/wallet-rpc.yaml @@ -3,6 +3,12 @@ info: description: Joinmarket wallet API version: "1" title: Joinmarket wallet API + license: + name: GPLv3 + url: https://www.gnu.org/licenses/gpl-3.0.html +servers: +- url: https://none + description: This API is called locally to a jmwalletd instance, acting as server, for each wallet owner, it is not public. paths: /wallet/create: post: @@ -105,6 +111,8 @@ paths: responses: '200': $ref: "#/components/responses/Session-200-OK" + '404': + $ref: '#/components/responses/404-NotFound' /wallet/all: get: summary: get current available wallets @@ -113,6 +121,8 @@ paths: responses: '200': $ref: "#/components/responses/ListWallets-200-OK" + '404': + $ref: '#/components/responses/404-NotFound' /wallet/{walletname}/address/new/{mixdepth}: get: security: @@ -875,8 +885,6 @@ components: $ref: "#/components/schemas/FreezeResponse" 202-Accepted: description: The request has been submitted successfully for processing, but the processing has not been completed. - 204-NoResultFound: - description: No result found for matching search criteria. # Clientside error responses 400-BadRequest: description: Bad request format. @@ -920,18 +928,6 @@ components: application/json: schema: $ref: '#/components/schemas/ErrorMessage' - 422-UnprocessableEntity: - description: Business rule validation failure. - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorMessage' - 429-TooManyRequests: - description: There are too many requests in a given amount of time. - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorMessage' # Serverside error responses 503-ServiceUnavailable: description: The server is not ready to process the request. @@ -939,9 +935,3 @@ components: application/json: schema: $ref: '#/components/schemas/ErrorMessage' - 5XX-UnexpectedError: - description: There was an internal issue calling the service. - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorMessage'