openapi-processor / openapi-processor/openapi-processor-base
generate dto even though it has a mapping
未关闭
还没有人认领这个 Issue。
- 主要语言
- Kotlin
- 星标
- 2
- 派生
- 4
- 平均合并
- 4 天 55 分钟
- 30 天内合并 PR
- 9
描述
Maybe it would be nice to create a mapping and still generate the dto for the OpenAPI type.
That way it would be possible to enhance (extend or wrap) the dto, by adding some "code" and use the enhanced version in the endpoint interface.
The mapping could use a new arrow operator to configure this
- type: OpenApiType => io.openapiprocessor.JavaType # standard
- type: OpenApiType +=> io.openapiprocessor.JavaType # i.e., generate dto for OpenApiType and use mapping
- type: OpenApiType -> io.openapiprocessor.JavaType
- type: OpenApiType ~> io.openapiprocessor.JavaType
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
该 issue 未指明任何文件、测试或入口点。首先定位 mapping parser 和 DTO 生成逻辑,然后确定 mapping 如何保留生成过程,以及所提议的箭头变体应如何行为;当所选语法已实现,并覆盖生成、mapping 和增强的 DTO 使用时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- kotlin, openapi
- 领域
- backend-api-design, tooling
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100