You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use openapi-generator for a multiplatform project and I started with the petstore api as described in this reddit post. I am unable to run ./gradlew assemble on the multiplatform project and gettin some compilation errors which seems related to Kotlinx.serialization library. I have added the different artifacts and steps followed to reproduce this error.
Could be related to the version of libraries (Kotlinx.serialization, ktor) used while generating the models. Is the possible to update the libraries before generating the code?
The text was updated successfully, but these errors were encountered:
I'm able to build the JVM library but any iOS one fails for me as well. I think the generated source is out of data in relation to the current ktor and serialization versions.
Description
I am trying to use openapi-generator for a multiplatform project and I started with the petstore api as described in this reddit post. I am unable to run
./gradlew assemble
on the multiplatform project and gettin some compilation errors which seems related toKotlinx.serialization
library. I have added the different artifacts and steps followed to reproduce this error.openapi-generator version
openapi-jar-version: 5.0.1
openapi-jar : https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.0.1/openapi-generator-cli-5.0.1.jar
OpenAPI declaration file content or url
yaml file : https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml
Command line used for generation
java -jar openapi-generator-cli.jar generate -g kotlin -i petstore.yaml --library multiplatform -o /var/tmp/kotlin/
Steps to reproduce
distributionUrl
ingradlew-wrapper.properties
todistributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
build.gradle
kotlin_version
=1.4.30
coroutines_version
=1.3.1
ktor_version
=1.5.1
kotlinx_version
=1.1.0-rc
./gradlew version
Related issues/PRs
stacktrace : https://gist.github.com/RahulRvR/cc4e8bc52373baa0862f125da888c09a
Suggest a fix/enhancement
The text was updated successfully, but these errors were encountered: