Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(retrofit2): fix A @path parameter must not come after a @Query error (backport #1478) #1479

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Feb 27, 2025

Retrofit2, unlike retrofit1, is enforcing ordering of @Path and @Query params in the retrofit2 api interface method signature.
When a @Path param is positioned after @Query param, then retrofit2 throws the following exception:

java.lang.IllegalArgumentException: A @Path parameter must not come after a @Query

There are two such cases which are fixed in this PR.


This is an automatic backport of pull request #1478 done by Mergify.

…error (#1478)

* test(retrofit2): add a test to demonstrate the following error:
java.lang.IllegalArgumentException: A @path parameter must not come after a @query.

* fix(retrofit2): fix `A @path parameter must not come after a @Query` error

(cherry picked from commit f170364)
@dbyron-sf dbyron-sf added the ready to merge Approved and ready for merge label Feb 27, 2025
@mergify mergify bot added the auto merged label Feb 27, 2025
@mergify mergify bot merged commit a410556 into release-1.37.x Feb 27, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants