OpenAPITools / OpenAPITools/openapi-generator
[Java][microprofile] dateLibrary config not used
未关闭
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 26.8k
- 派生
- 7.7k
- PR 合并指标
- PR 指标待抓取
描述
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 JavaClientCodegen 的第 422 行开始,将其固定的 org.joda.time.LocalDate 映射与 AbstractJavaCodegen 中的 dateLibrary 逻辑进行比较。使用任何包含 LocalDate 的 service 以及报告中描述的 Maven 命令重现该问题。当 microprofile Java client 遵循配置的 dateLibrary 时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 55/100