Skip to content

[BUG][KOTLIN] Generator 7.16.0 for Kotlin uses experimental kotlin.time.Instant without marking it #22170

@LarsSven

Description

@LarsSven
Description

OpenAPI generator v7.16 suddenly starts generating kotlin.time.Instant properties within data classes, however this is an experimental class that must be annotated with '@kotlin.time.ExperimentalTime'. Since it is not annotated with that annotation, compilation of the generated source code fails

openapi-generator version

7.16.0

Reproducer
  1. git clone https://gitlab.com/rug-digitallab/resources/docker-kotlin.git
  2. git checkout renovate/openapigeneratorversion
  3. Observe failure when running ./gradlew assemble

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions