Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #8688
Closed
Open
Issue created Feb 12, 2021 by Administrator@rootContributor

[Kotlin] Jackson is outdated

Created by: zapodot

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

Assignee
Assign to
Time tracking