Skip to content

Commit 406226e

Browse files
committed
[OpenAPI] - Set default for compatibility with superclass
1 parent 44c20b9 commit 406226e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rest_framework_json_api/schemas/openapi.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,9 +632,13 @@ def _delete_item(self, operation, path, action):
632632

633633
self._add_delete_responses(operation)
634634

635-
def _get_request_body(self, path, method, action):
635+
def _get_request_body(self, path, method, action=None):
636636
""" jsonapi-flavored request_body """
637637
# TODO: if a RelationshipView, check for toMany (data array) vs. toOne.
638+
639+
if not action:
640+
action = []
641+
638642
content = {}
639643
view = self.view
640644

0 commit comments

Comments
 (0)