Open Wooyme opened 5 years ago
Sure we definitely welcome contribution on that.
Have you tried the following existing Kotlin server stub generators?
If it's not very different, then we can add an option (e.g. library
) to support Vertx in one of the Kotlin server generator above.
Actually, the kotlin vertx server is similar to the java one, but there are some problems in the java one. The vertx-swagger-router created by phiz71 is out of date. So I made the vertx-openapi-router which works well with OpenAPI 3.0. And of course, there are some other features provided by Kotlin and I'd like to see them in Kotlin Vertx Server.
@Wooyme you can use the official package https://vertx.io/docs/vertx-web-api-contract/kotlin/
Links to #115
@Wooyme you can use the official package https://vertx.io/docs/vertx-web-api-contract/kotlin/
Links to #115
I have tried it before. It works well, but not so convient I think. as I have to write model myself and it's complex if I want to use coroutine.
@Wooyme currently breaks when using oneOf:
oneOf (OAS v3 new feature) is not yet supported in the Kotlin server. Of course, we welcome contributions to implement its support in Kotlin and other generators.
@Wooyme @wing328 Response<Void>
response types are impossible in Kotlin. 204 No Content responses need to be supported with Response<Unit>
instead of Response<Void>
or use Response<Void?>
to allow null to be passed in.
@Wooyme thanks for the feedback. Do you submitting a PR for that? I can show you some good starting points.
May I add Kotlin-Vertx Server generator for this project.