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"""
|
"""Get a generic error schema"""
|
||||||
return openapi.Schema(
|
return openapi.Schema(
|
||||||
"Generic API Error",
|
"Generic API Error",
|
||||||
type=openapi.TYPE_OBJECT,
|
|
||||||
properties={
|
|
||||||
"errors": openapi.Schema(
|
|
||||||
type=openapi.TYPE_OBJECT,
|
type=openapi.TYPE_OBJECT,
|
||||||
properties={
|
properties={
|
||||||
"detail": openapi.Schema(
|
"detail": openapi.Schema(
|
||||||
|
@ -25,8 +22,6 @@ class ErrorResponseAutoSchema(SwaggerAutoSchema):
|
||||||
type=openapi.TYPE_STRING, description="Error code"
|
type=openapi.TYPE_STRING, description="Error code"
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
)
|
|
||||||
},
|
|
||||||
required=["detail"],
|
required=["detail"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -14466,9 +14466,6 @@ definitions:
|
||||||
required:
|
required:
|
||||||
- detail
|
- detail
|
||||||
type: object
|
type: object
|
||||||
properties:
|
|
||||||
errors:
|
|
||||||
type: object
|
|
||||||
properties:
|
properties:
|
||||||
detail:
|
detail:
|
||||||
description: Error details
|
description: Error details
|
||||||
|
@ -14496,9 +14493,6 @@ definitions:
|
||||||
required:
|
required:
|
||||||
- detail
|
- detail
|
||||||
type: object
|
type: object
|
||||||
properties:
|
|
||||||
errors:
|
|
||||||
type: object
|
|
||||||
properties:
|
properties:
|
||||||
detail:
|
detail:
|
||||||
description: Error details
|
description: Error details
|
||||||
|
|
Reference in New Issue