OpenAPITools / OpenAPITools/openapi-generator
[BUG][KOTLIN] Generator 7.16.0 for Kotlin uses experimental `kotlin.time.Instant` without marking it
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
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
git clone https://gitlab.com/rug-digitallab/resources/docker-kotlin.gitgit checkout renovate/openapigeneratorversion- Observe failure when running
./gradlew assemble
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provided docker-kotlin reproducer, check out renovate/openapigeneratorversion, and run ./gradlew assemble to confirm the generated-source compilation failure. Trace where the Kotlin data classes and kotlin.time.Instant properties are generated; done means the generated project compiles without requiring an unmarked experimental API.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100