Skip to content
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

[Kotlin] Jackson is outdated #8688

Closed
zapodot opened this issue Feb 12, 2021 · 0 comments · Fixed by #8689
Closed

[Kotlin] Jackson is outdated #8688

zapodot opened this issue Feb 12, 2021 · 0 comments · Fixed by #8689

Comments

@zapodot
Copy link
Contributor

zapodot commented Feb 12, 2021

Description

The project is generated with an outdated version of Jackson when language is "kotlin" and serializationLibrary is "jackson". It also references the obsolete JDK8 module for Jackson which is no longer needed

openapi-generator version

5.1.0-SNAPSHOT

Command line used for generation

maven plugin configuration:

<configuration>
    <inputSpec>${project.build.directory}/openapi.json</inputSpec>
    <generatorName>kotlin</generatorName>
    <configOptions>
        <dateLibrary>java8</dateLibrary>
        <java11>true</java11>
        <useCoroutines>true</useCoroutines>
        <collectionType>list</collectionType>
        <enumPropertyNaming>UPPERCASE</enumPropertyNaming>
        <serializationLibrary>jackson</serializationLibrary>
    </configOptions>
    <packageName>org.example</packageName>
    <library>jvm-okhttp4</library>
    <generateApiTests>false</generateApiTests>
    <generateModelTests>false</generateModelTests>
    <generateSupportingFiles>true</generateSupportingFiles>
    <addCompileSourceRoot>true</addCompileSourceRoot>
</configuration>
Steps to reproduce
Related issues/PRs

#8689

Suggest a fix/enhancement

Adjust mustache templates to use an updated version of Jackson and remove all references to the JDK8 module as all functionality has been merged into jackson-core in the latest versions
I will provide a PR that will solve this issue

zapodot added a commit to zapodot/openapi-generator that referenced this issue Feb 12, 2021
wing328 pushed a commit that referenced this issue Mar 17, 2021
* Upgrade jackson version used in the Kotlin client #8688

* Generated project

* Remove spaces before import

* Add generated sample from previous commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant