File tree 2 files changed +5
-0
lines changed
openapi_python_client/parser
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ class Endpoint:
94
94
name : str
95
95
requires_security : bool
96
96
tag : str
97
+ summary : Optional [str ] = ""
97
98
relative_imports : Set [str ] = field (default_factory = set )
98
99
query_parameters : List [Property ] = field (default_factory = list )
99
100
path_parameters : List [Property ] = field (default_factory = list )
@@ -259,6 +260,7 @@ def from_data(
259
260
endpoint = Endpoint (
260
261
path = path ,
261
262
method = method ,
263
+ summary = utils .remove_string_escapes (data .summary ) if data .summary else "" ,
262
264
description = utils .remove_string_escapes (data .description ) if data .description else "" ,
263
265
name = name ,
264
266
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):
631
631
path = path ,
632
632
method = method ,
633
633
description = data .description ,
634
+ summary = "" ,
634
635
name = data .operationId ,
635
636
requires_security = True ,
636
637
tag = "default" ,
@@ -677,6 +678,7 @@ def test_from_data_no_operation_id(self, mocker):
677
678
path = path ,
678
679
method = method ,
679
680
description = data .description ,
681
+ summary = "" ,
680
682
name = "get_path_with_param" ,
681
683
requires_security = True ,
682
684
tag = "default" ,
@@ -724,6 +726,7 @@ def test_from_data_no_security(self, mocker):
724
726
path = path ,
725
727
method = method ,
726
728
description = data .description ,
729
+ summary = "" ,
727
730
name = data .operationId ,
728
731
requires_security = False ,
729
732
tag = "a" ,
You can’t perform that action at this time.
0 commit comments