Skip to content

Commit 4bda249

Browse files
committed
[OpenAPI] - Reword TODO
1 parent 406226e commit 4bda249

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rest_framework_json_api/schemas/openapi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,8 @@ def get_paths(self, request=None):
337337
view.action = current_action
338338

339339
if 'responses' in operation and '200' in operation['responses']:
340-
operation['responses']['200']['description'] = operation['operationId'] # TODO:!
340+
# TODO: Still a TODO in DRF 3.11 as well
341+
operation['responses']['200']['description'] = operation['operationId']
341342
# Normalise path for any provided mount url.
342343
if path.startswith('/'):
343344
path = path[1:]

0 commit comments

Comments
 (0)