Add openapi response of error 400
This commit is contained in:
@@ -42,7 +42,11 @@ paths:
|
|||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/ArticleListingResponse'
|
$ref: '#/components/schemas/ArticleListingResponse'
|
||||||
400:
|
400:
|
||||||
$ref: '#/components/responses/400'
|
description: BadReqest
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/400'
|
||||||
post:
|
post:
|
||||||
security:
|
security:
|
||||||
- JWTAuth: []
|
- JWTAuth: []
|
||||||
@@ -2211,6 +2215,41 @@ components:
|
|||||||
- REPORTER
|
- REPORTER
|
||||||
example: MASTER
|
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:
|
securitySchemes:
|
||||||
JWTAuth:
|
JWTAuth:
|
||||||
type: http
|
type: http
|
||||||
|
|||||||
Reference in New Issue
Block a user