OpenAPITools / OpenAPITools/openapi-generator

[Java][microprofile] dateLibrary config not used

Open
#5,653 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.