From d3cecabd23afed2fa06c6052afe1ccf3df8c75c0 Mon Sep 17 00:00:00 2001 From: Alejandro Solda <43531535+alesolda@users.noreply.github.com> Date: Thu, 3 Nov 2022 18:53:31 -0300 Subject: [PATCH] Fix openapi schema method mapping Fix incorrect schema method mapping for "patch" whose action is called "partial_update". --- rest_framework/schemas/openapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/schemas/openapi.py b/rest_framework/schemas/openapi.py index 2f9fb9f28..00ffd7f6f 100644 --- a/rest_framework/schemas/openapi.py +++ b/rest_framework/schemas/openapi.py @@ -137,7 +137,7 @@ class AutoSchema(ViewInspector): 'get': 'retrieve', 'post': 'create', 'put': 'update', - 'patch': 'partialUpdate', + 'patch': 'partial_update', 'delete': 'destroy', }