api: fix invalid swagger schema
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
36c34e05f8
commit
21ea527623
|
@ -13,9 +13,6 @@ class ErrorResponseAutoSchema(SwaggerAutoSchema):
|
|||
"""Get a generic error schema"""
|
||||
return openapi.Schema(
|
||||
"Generic API Error",
|
||||
type=openapi.TYPE_OBJECT,
|
||||
properties={
|
||||
"errors": openapi.Schema(
|
||||
type=openapi.TYPE_OBJECT,
|
||||
properties={
|
||||
"detail": openapi.Schema(
|
||||
|
@ -25,8 +22,6 @@ class ErrorResponseAutoSchema(SwaggerAutoSchema):
|
|||
type=openapi.TYPE_STRING, description="Error code"
|
||||
),
|
||||
},
|
||||
)
|
||||
},
|
||||
required=["detail"],
|
||||
)
|
||||
|
||||
|
|
|
@ -14466,9 +14466,6 @@ definitions:
|
|||
required:
|
||||
- detail
|
||||
type: object
|
||||
properties:
|
||||
errors:
|
||||
type: object
|
||||
properties:
|
||||
detail:
|
||||
description: Error details
|
||||
|
@ -14496,9 +14493,6 @@ definitions:
|
|||
required:
|
||||
- detail
|
||||
type: object
|
||||
properties:
|
||||
errors:
|
||||
type: object
|
||||
properties:
|
||||
detail:
|
||||
description: Error details
|
||||
|
|
Reference in New Issue