Skip to content

Conversation

rbygrave
Copy link
Contributor

When the interface has been previously compiled then the method arg names are effectively lost - become arg0, arg1, arg2 etc. In this case the generation can get the implied arg names for path parameters from the segments but for @QueryParam and @Header parameters we now need explicitly named arguments.

This change handles the path segments and gives a reasonable error for QueryParams and Headers etc that are not explicitly named.

When the interface has been previously compiled then the method arg
names are effectively lost - become arg0, arg1, arg2 etc. In this case
the generation can get the implied arg names for path parameters from
the segments but for @QueryParam and @Header parameters we now need
explicitly named arguments.

This change handles the path segments and gives a reasonable error
for QueryParams and Headers etc that are not explicitly named.
@rbygrave rbygrave self-assigned this Sep 25, 2023
@rbygrave rbygrave added this to the 2.0 milestone Sep 25, 2023
@SentryMan SentryMan merged commit 7243a48 into master Sep 26, 2023
@SentryMan SentryMan deleted the feature/client-gen-import branch September 26, 2023 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants