OpenAPITools / OpenAPITools/openapi-generator
[Java][microprofile] dateLibrary config not used
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Description
The recently added Java Cleint Library "microprofile" uses fix org.joda.time.LocalDate as LocalDate and does not consider the dateLibrary configuration. Line 422 in JavaClientCodegen.
Deos this behaviour has a specific reason? Or could this line being deleted which would activate the dateLibrary logic from AbstractJavaCodegen.
openapi-generator version
4.3.0
OpenAPI declaration file content or url
Command line used for generation
mvn
Steps to reproduce
any service with a LocalDate
Related issues/PRs
Suggest a fix/enhancement
delete line 422 in JavaClientCodegen
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 in JavaClientCodegen at line 422 and compare its fixed org.joda.time.LocalDate mapping with the dateLibrary logic in AbstractJavaCodegen. Reproduce the issue with any service containing a LocalDate and the Maven command described in the report. Done means the microprofile Java client honors the configured dateLibrary.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100