Skip to content

Commit 8c4397f

Browse files
natslee-elenbaas
authored andcommitted
Add "data: oai.Operation" attribute to Endpoint
1 parent af88e6a commit 8c4397f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

openapi_python_client/parser/openapi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ class Endpoint:
109109
Describes a single endpoint on the server
110110
"""
111111

112+
data: oai.Operation
112113
path: str
113114
method: str
114115
description: Optional[str]
@@ -506,6 +507,7 @@ def from_data(
506507
name=name,
507508
requires_security=bool(data.security),
508509
tag=tag,
510+
data=data,
509511
)
510512

511513
result, schemas, parameters = Endpoint.add_parameters(

0 commit comments

Comments
 (0)