File tree 1 file changed +9
-10
lines changed
openapi_python_client/parser
1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -303,16 +303,15 @@ def _add_parameters(
303
303
304
304
endpoint .relative_imports .update (prop .get_imports (prefix = "..." ))
305
305
306
- if prop .name not in parameters_by_location [param .param_in ]:
307
- if prop .python_name in endpoint .used_python_identifiers :
308
- return (
309
- ParseError (
310
- detail = f"Parameters with same Python identifier `{ prop .python_name } ` detected" , data = data
311
- ),
312
- schemas ,
313
- )
314
- endpoint .used_python_identifiers .add (prop .python_name )
315
- parameters_by_location [param .param_in ][prop .name ] = prop
306
+ if prop .python_name in endpoint .used_python_identifiers :
307
+ return (
308
+ ParseError (
309
+ detail = f"Parameters with same Python identifier `{ prop .python_name } ` detected" , data = data
310
+ ),
311
+ schemas ,
312
+ )
313
+ endpoint .used_python_identifiers .add (prop .python_name )
314
+ parameters_by_location [param .param_in ][prop .name ] = prop
316
315
317
316
return endpoint , schemas
318
317
You can’t perform that action at this time.
0 commit comments