swagger-gradle-codegen
swagger-gradle-codegen copied to clipboard
💫 A Gradle Plugin to generate your networking code from Swagger
I'm trying to specify the `inputFile` via command line options, as described inside the readme: ``` ./gradlew generateSwagger --inputFile=./specs.json ``` but this fails with ``` Option 'inputFile' cannot be cast...
It could be a good thing if the builder could parse OpenAPI 3.0 swagger json file https://swagger.io/docs/specification/about/
Swagger specifications allow models to be polymorphic via a `discriminator` field ([doc](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#composition-and-inheritance-polymorphism)). This allows a model, let's say `Animal` to be a sort of parent in the hierarchy of other...
I found a bug when generating api for a service responsing with an array of objects. Generated code doesn't point to proper class definition (TestObject in the example below replaced...
This PR does some preparatory work for #103 . In order to achieve polymorphism support we need to extract few functionalities from `KotlinGenerator` to `SharedCodegen`. I totally understand that this...
Fixes #103 The goal of this PR is to introduce support for polymorphic data models within the generated code. Details of the feature introduced are properly described in the linked...
This PR extends on #136. There's still work to be so external input is more then welcome: Changes that should be discussed: - replaced `ZonedDateTime` with `Instant` from **kotlinx-datetime** -...
Hello 👋 It will be great to have support for [kotlinx-datetime](https://github.com/Kotlin/kotlinx-datetime) rather than ThreeTenABP. It will be also required in case you will be supporting Kotlin Multiplatform later on!
For multiplatform projects, it would be good to have support for using kotlinx.serialization.
PR for #109