Skip to content

Commit

Permalink
[Feat] #9 - Path isn't supported custom name
Browse files Browse the repository at this point in the history
  • Loading branch information
gunyu1019 committed Mar 4, 2024
1 parent 4e1223c commit 904ebee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions async_client_decorator/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,7 @@ def _add_parameter_to_component(
name = self._get_component_name(parameter.name, component_type)
self.query_parameter[name] = parameter
elif issubclass(component_type, Path) or parameter.name in path_parameter:
name = self._get_component_name(parameter.name, component_type)
self.path_parameter[name] = parameter
self.path_parameter[parameter.name] = parameter
elif issubclass(component_type, Form) or parameter.name in form_parameter:
self._duplicated_check_body_parameter()
self.body_parameter_type = "data"
Expand Down

0 comments on commit 904ebee

Please sign in to comment.