File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
openapi_python_client/parser Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ class Endpoint:
9494 name : str
9595 requires_security : bool
9696 tag : str
97+ summary : Optional [str ] = ""
9798 relative_imports : Set [str ] = field (default_factory = set )
9899 query_parameters : List [Property ] = field (default_factory = list )
99100 path_parameters : List [Property ] = field (default_factory = list )
@@ -259,6 +260,7 @@ def from_data(
259260 endpoint = Endpoint (
260261 path = path ,
261262 method = method ,
263+ summary = utils .remove_string_escapes (data .summary ) if data .summary else "" ,
262264 description = utils .remove_string_escapes (data .description ) if data .description else "" ,
263265 name = name ,
264266 requires_security = bool (data .security ),
Original file line number Diff line number Diff line change @@ -631,6 +631,7 @@ def test_from_data_standard(self, mocker):
631631 path = path ,
632632 method = method ,
633633 description = data .description ,
634+ summary = "" ,
634635 name = data .operationId ,
635636 requires_security = True ,
636637 tag = "default" ,
@@ -677,6 +678,7 @@ def test_from_data_no_operation_id(self, mocker):
677678 path = path ,
678679 method = method ,
679680 description = data .description ,
681+ summary = "" ,
680682 name = "get_path_with_param" ,
681683 requires_security = True ,
682684 tag = "default" ,
@@ -724,6 +726,7 @@ def test_from_data_no_security(self, mocker):
724726 path = path ,
725727 method = method ,
726728 description = data .description ,
729+ summary = "" ,
727730 name = data .operationId ,
728731 requires_security = False ,
729732 tag = "a" ,
You can’t perform that action at this time.
0 commit comments