stages/authenticator_duo: fix schema not declaring request body correctly

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-09-05 22:00:02 +02:00
parent d0a69557d4
commit eed958b132
2 changed files with 1 additions and 6 deletions

View file

@ -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"),

View file

@ -15108,12 +15108,6 @@ paths:
type: string
tags:
- stages
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AuthenticatorDuoStageRequest'
required: true
security:
- authentik: []
responses: