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

Scala3 reserved keyworkds in tools/ClientWriter #1145

Merged

Conversation

jgoday
Copy link
Contributor

@jgoday jgoday commented Nov 15, 2021

See #1130.

Add scala3 reserved and soft keywords to tools/src/main/scala/caliban/tools/ClientWriter.scala,
to safe generate client code from graphql schemas.

Some scala3 operators are not included, because they are not considered valid names in a graphql schema

:         =         <-        =>        <:        >:        #             @         =>>       ?=>

https://dotty.epfl.ch/docs/internals/syntax.html#regular-keywords

Copy link
Owner

@ghostdogpr ghostdogpr left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

@ghostdogpr ghostdogpr merged commit e94a07b into ghostdogpr:master Nov 16, 2021
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