From ab418ae300fd818416079884ad77cc93ad151601 Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Mon, 5 Apr 2021 00:48:11 +0200 Subject: [PATCH] Add openapi response of error 400 --- src/main/resources/openapi.yaml | 41 ++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/src/main/resources/openapi.yaml b/src/main/resources/openapi.yaml index 386e9e7..e453251 100644 --- a/src/main/resources/openapi.yaml +++ b/src/main/resources/openapi.yaml @@ -42,7 +42,11 @@ paths: items: $ref: '#/components/schemas/ArticleListingResponse' 400: - $ref: '#/components/responses/400' + description: BadReqest + content: + application/json: + schema: + $ref: '#/components/schemas/400' post: security: - JWTAuth: [] @@ -2211,6 +2215,41 @@ components: - REPORTER example: MASTER + 400: + description: noting + required: + - title + - invalidParams + additionalProperties: false + properties: + statusCode: + type: integer + type: + type: string + nullable: true + title: + type: string + detail: + type: string + nullable: true + cause: + type: string + nullable: true + stackTrace: + type: string + nullable: true + invalidParams: + type: array + items: + required: + - name + - reason + properties: + name: + type: string + reason: + type: string + securitySchemes: JWTAuth: type: http