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

[scala-sttp] Compilation failure URI parameter not camelCase #9354

Merged
merged 1 commit into from
May 12, 2021
Merged

[scala-sttp] Compilation failure URI parameter not camelCase #9354

merged 1 commit into from
May 12, 2021

Conversation

softdevca
Copy link
Contributor

scala-sttp generators would not compile when URI parameter names were not camelCase. Fixed by substituting the names in the URI with values from encodePath.

Test case added.

Fixes #9345

  • Read the contribution guidelines.
  • Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community.
  • Run the following to build the project and update samples:
  • File the PR against the correct branch: master, 5.1.x, 6.0.x
  • If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.

cc @clasnake (2017/07), @jimschubert (2017/09) heart, @shijinkui (2018/01), @ramzimaalej (2018/03), @chameleon82 (2020/03), @Bouillie (2020/04)

@bgong-mdsol
Copy link
Contributor

This fix looks good for me, our project needs this fix. Can someone review the changes? Many thanks

Copy link
Contributor

@chameleon82 chameleon82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @softdevca

@wing328 wing328 added this to the 5.2.0 milestone May 12, 2021
@wing328 wing328 merged commit be06541 into OpenAPITools:master May 12, 2021
@wing328
Copy link
Member

wing328 commented May 12, 2021

@softdevca thanks for the PR, which has been merged. Sorry for the delay as we're busy with the v5.1.1 release.

@wing328 wing328 changed the title [scala-sttp] Compilation failure URI parameter not camelCase, fixes #9345 [scala-sttp] Compilation failure URI parameter not camelCase Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] [scala-sttp] Compilation fails with non-camelCase URI parameters
4 participants