From 3d328d5f5fa96555585866801541b39d5cf2d21d Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Sun, 9 Oct 2022 14:56:03 +0200 Subject: [PATCH] fix(openapi): Fix spec generation for PasswordReset --- api/funkwhale_api/users/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/funkwhale_api/users/views.py b/api/funkwhale_api/users/views.py index d4e59b541..0eea4e623 100644 --- a/api/funkwhale_api/users/views.py +++ b/api/funkwhale_api/users/views.py @@ -12,7 +12,7 @@ from rest_framework import viewsets from rest_framework.decorators import action from rest_framework.response import Response -from drf_spectacular.utils import extend_schema +from drf_spectacular.utils import extend_schema, extend_schema_view from funkwhale_api.common import authentication from funkwhale_api.common import preferences @@ -51,7 +51,7 @@ class VerifyEmailView(registration_views.VerifyEmailView): action = "verify-email" -@extend_schema(operation_id="change_password") +@extend_schema_view(post=extend_schema(operation_id="change_password")) class PasswordChangeView(rest_auth_views.PasswordChangeView): action = "password-change"