-
Notifications
You must be signed in to change notification settings - Fork 102
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
Is generateInterfaces not supported for kotlin ? #200
Comments
This feature is only available tor Java and not kotlin. We will update the docs to clarify better.
… On Jul 31, 2021, at 8:08 AM, Lorefnon ***@***.***> wrote:
When I select generateInterfaces as described in this section and the language is set as kotlin, nothing is generated. But on switching to java, I can see all the interfaces getting generated correctly.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
It should just generate Java classes for the client API when in a Kotlin project. Is that not what you're seeing? We moved away from generating Kotlin specific client API classes because there was no benefit to it compared to generating Java classes. But it should still generate those Java classes obviously. |
I am not generating client api. This is about generating interfaces instead of data classes or pojos for types defined in the schema. Using java interfaces in kotlin is a bit of an inconvenience (though not a huge one) because kotlin won't allow overriding of getters in java interfaces by properties in kotlin class (https://youtrack.jetbrains.com/issue/KT-6653). So one needs to define getters with backing properties in kotlin impl. |
Sorry, I completely misread your original question. The |
When I select generateInterfaces as described in this section and the language is set as kotlin, nothing is generated. But on switching to java, I can see all the interfaces getting generated correctly.
The text was updated successfully, but these errors were encountered: