From 61a1d6eaed94f970c21bb8acf22f7eafe01400cf Mon Sep 17 00:00:00 2001 From: Mopsan Date: Tue, 5 May 2020 16:59:17 +0300 Subject: [PATCH] Add summary field to Path Item Object --- rest_framework/schemas/openapi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rest_framework/schemas/openapi.py b/rest_framework/schemas/openapi.py index 9b3082822..9962c4c5c 100644 --- a/rest_framework/schemas/openapi.py +++ b/rest_framework/schemas/openapi.py @@ -144,6 +144,7 @@ class AutoSchema(ViewInspector): def get_operation(self, path, method): operation = {} + operation['summary'] = self.get_summary(path, method) operation['operationId'] = self.get_operation_id(path, method) operation['description'] = self.get_description(path, method)