-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
Fails to escape object
keyword on schema generation
#1224
Comments
Indeed, the field was not escaped in the newly added function. I fixed it in #1225. Can you confirm that it's fixed with the latest snapshot? |
I tried with this snapshot: addSbtPlugin("com.github.ghostdogpr" % "caliban-codegen-sbt" % "1.3.1+9-7df8ec8a-SNAPSHOT") and it still fails:
You should be able to reproduce, since it is the public github endpoint.
|
I think it's not the latest, can you try with 1.3.1+13-93e4c000-SNAPSHOT ? |
Ok, that fixed that problem! Thanks, Now i'm innundated with evey place the following is used:
If you want I can file a separate issue.... P.S. 1.2.1 works :D |
Did you update caliban-client to the same version as the sbt plugin? If yes, is there |
You're right; I forgot to update the client as well. The import is there; but now I get this:
|
Sad! Can you post the generated code making the error (just the problematic function) and possibly the related part of the schema? |
Available in snapshot 1.3.1+21-44a3d7e2-SNAPSHOT |
It did work! Thanks! |
After upgrading to 1.3.1 the schem for github (https://api.github.com/graphql) is no longer correctly generated
when trying to compile Repository or TreeEntry classes you can see that the object field is not escaped correctly in the generated code:
The text was updated successfully, but these errors were encountered: