-
Notifications
You must be signed in to change notification settings - Fork 660
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
Properties are not escaped in function body for input builders. #6112
Comments
Good catch! Thanks for reporting. Would you be interested in opening a PR? |
I can do that, but I was unsure where to add the test for this. Could you point out where? |
Thanks!
|
I get this error when trying to run the tests. Is there any more setup I need to find the dependencies?
|
Do you have Gradle init scripts maybe? Or maybe Android Studio changed your build files automatically? This warning shouldn't be printed. |
It seems that IntelliJ or Gradle made some changes to the build files. I'm trying to make a pr now, but I get permission denied. |
You'll need to push your branch to a fork of yours and open the PR from there. |
Closed with #6116. Thanks again 🙏 |
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Kotlin usage and allow us to serve you better. |
Thanks as well 🙏 |
Version
4.0.0
Summary
When generating input builders for the following code, I get an invalid code that doesn't compile because the property
in
is not escaped when used in the function body of the builder methods.Steps to reproduce the behavior
This graphql:
Generates this code
In the setter function for
in
, we see thatin
is not escaped.this.in = Optional.Present(in)
. The issue seems to be here where%L
is used instead of%N
where%L
does not escape the value.Logs
No response
The text was updated successfully, but these errors were encountered: