-
Notifications
You must be signed in to change notification settings - Fork 107
fix: allow Kotlin generators to emit fields named '_' #880
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,5 +21,5 @@ package com.netflix.graphql.dgs.codegen.generators.kotlin | |
| import graphql.language.NamedNode | ||
|
|
||
| object ReservedKeywordFilter { | ||
| val filterInvalidNames: (NamedNode<*>) -> Boolean = { it.name != "_" } | ||
| val filterInvalidNames: (NamedNode<*>) -> Boolean = { true } | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm wondering if we should just remove this completely now that it's basically a no-op.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jiholee17 do you want to take a look at removing this filter after we merge this?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sure, I can take a look |
||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.