add example on openapi 400 error

This commit is contained in:
2021-04-06 23:35:36 +02:00
parent fe11384ad2
commit e26710898e

View File

@@ -2248,8 +2248,10 @@ components:
properties: properties:
statusCode: statusCode:
type: integer type: integer
example: 400
title: title:
type: string type: string
example: Bad Request
invalidParams: invalidParams:
type: array type: array
items: items:
@@ -2259,8 +2261,10 @@ components:
properties: properties:
name: name:
type: string type: string
example: '.title'
reason: reason:
type: string type: string
example: 'Cannot be null'
securitySchemes: securitySchemes:
JWTAuth: JWTAuth: