Replies: 1 comment
-
|
I can move discussion into generator repo, if needed |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@paulbakker I'm implementing a reach error type via GraphQL type, represented in code as a parent class. Error codes section
GraphQL type
Current Generated Kotlin code
Usage
Problem
The generated
Errorclass isn'topen, making it impossible to extend.Solution
Property for generator
I see it like property for plugin
generateKotlinAllOpenClassesgenerateJava { generateKotlinAllOpenClasses = true }Custom derictive
In case when making all generated classes is redundant, we can add new directive
@open, which I see in two ways:or
Can we modify the generator to make the
Errorclassopen? If so, I'd like to implement some solution.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions