-
Notifications
You must be signed in to change notification settings - Fork 93
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
Document Kotlin Support #1853
Comments
@NfNitLoop: thanks for your input. Would you like to turn this into a PR for a new page in the BTW: you don't have to add |
I'm not quite ready to turn it into a PR w/o knowing answers to some of the questions I asked:
I guess the main underlying question is, in general: What level of Kotlin compatibility does the project aim to provide? I can't answer that as someone who is not a main contributor. But it would be nice to have that stated somewhere so folks know what to expect. 😊 For context: my team is trying to decide whether to go all-in on Kotlin data models. And it's a bit more difficult to make that recommendation when the project we'll be using them with doesn't even mention Kotlin in its docs. (Yes, in theory, it shouldn't matter, because Kotlin runs on the JVM, but w.r.t. serialization it apparently does.) |
Hi @NfNitLoop - none of the main contributors know Kotlin. SmallRye GraphQL has no intention w.r.t Kotlin, we do what we can with supporting Kotlin. If currently data class constructor field names is NOT supported, then you are most welcome to open a PR that adds support for it. We will definitely consider it. As long as a PR does not add a bunch of new dependencies or rewrite a bunch of things, there should be no reason not to accept a feature. This project can do with a contributor that has knowledge and passion for Kotlin... |
Yeah. I like Kotlin but I am not very skilled with it. Any contributions to make us support it better are welcome. I can also imagine a Kotlin-based test suite, that would be nice. |
Hi @NfNitLoop, having the same issue around here. I am still deciding if we are going to use data classes or not. What you ended up doing? |
Hello! Thanks for this project! We're enjoying using it.
We'd like to use Kotlin to define our GraphQL models and implementation. But I don't see documentation about what Kotlin features are supported or not supported by SmallRye.
I think I've figured out the list below by trial an error, but it would be nice to have them documented somewhere as explicitly supported/unsupported. Can someone confirm these? 😊
@JsonbCretor
annotation on their constructor. (example below)@JsonbProperty("names")
, that seems to be handled automatically. (Is this handled by SmallRye? Or its JSON-B library? Is that a feature I can rely on?)The text was updated successfully, but these errors were encountered: