File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -173,17 +173,17 @@ def generate_operation_id_for_path(
173
173
DeprecationWarning ,
174
174
stacklevel = 2 ,
175
175
)
176
- operation_id = name + path
176
+ operation_id = f" { name } { path } "
177
177
operation_id = re .sub (r"\W" , "_" , operation_id )
178
- operation_id = operation_id + "_" + method .lower ()
178
+ operation_id = f" { operation_id } _ { method .lower ()} "
179
179
return operation_id
180
180
181
181
182
182
def generate_unique_id (route : "APIRoute" ) -> str :
183
- operation_id = route .name + route .path_format
183
+ operation_id = f" { route .name } { route .path_format } "
184
184
operation_id = re .sub (r"\W" , "_" , operation_id )
185
185
assert route .methods
186
- operation_id = operation_id + "_" + list (route .methods )[0 ].lower ()
186
+ operation_id = f" { operation_id } _ { list (route .methods )[0 ].lower ()} "
187
187
return operation_id
188
188
189
189
You can’t perform that action at this time.
0 commit comments