stages/authenticator_duo: fix schema not declaring request body correctly
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
d0a69557d4
commit
eed958b132
|
@ -102,6 +102,7 @@ class AuthenticatorDuoStageViewSet(UsedByMixin, ModelViewSet):
|
|||
name="username", type=OpenApiTypes.STR, location=OpenApiParameter.QUERY
|
||||
),
|
||||
],
|
||||
request=None,
|
||||
responses={
|
||||
204: OpenApiResponse(description="Enrollment successful"),
|
||||
400: OpenApiResponse(description="Device exists already"),
|
||||
|
|
|
@ -15108,12 +15108,6 @@ paths:
|
|||
type: string
|
||||
tags:
|
||||
- stages
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/AuthenticatorDuoStageRequest'
|
||||
required: true
|
||||
security:
|
||||
- authentik: []
|
||||
responses:
|
||||
|
|
Reference in a new issue