From e26710898e3012969c6ca216c0132a09ce510498 Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Tue, 6 Apr 2021 23:35:36 +0200 Subject: [PATCH] add example on openapi 400 error --- src/main/resources/openapi.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/resources/openapi.yaml b/src/main/resources/openapi.yaml index 4706131..4d8d410 100644 --- a/src/main/resources/openapi.yaml +++ b/src/main/resources/openapi.yaml @@ -2248,8 +2248,10 @@ components: properties: statusCode: type: integer + example: 400 title: type: string + example: Bad Request invalidParams: type: array items: @@ -2259,8 +2261,10 @@ components: properties: name: type: string + example: '.title' reason: type: string + example: 'Cannot be null' securitySchemes: JWTAuth: