forked from loafle/openapi-generator-original
* Fix Retrofit template with Jackson (Fix #8147) This commit amends the `ApiClient` template for Retrofit. It fixes a bug where the Retrofit client uses Jackson as the serialization library. Until now, the `ApiClient` could not be compiled when using the Jackson library (default in SpringBoot applications), as the constructor of the class had the following parameter: `private val serializerBuilder: Builder = Serializer.Builder,` The change done in the commit, is to ensure that in case of Jackson, the right property of the `Serializer` class is assigned * Add sample code for `kotlin-jvm-jackson` This commit adds a sample code for the `kotlin-jvm-jackson` generated code to test the changes on CI * Update kotlin code samples for CI This commit only runs the command `bin/generate-samples.sh bin/configs/kotlin-*` to ensure that all code samples are up-to-date and CI can pass successfully.
10 lines
374 B
YAML
10 lines
374 B
YAML
generatorName: kotlin
|
|
outputDir: samples/client/petstore/kotlin-jvm-jackson
|
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
|
additionalProperties:
|
|
artifactId: kotlin-petstore-jvm-jackson
|
|
enumUnknownDefaultCase: true
|
|
serializationLibrary: jackson
|
|
library: jvm-retrofit2
|