openapi-processor / openapi-processor/openapi-processor-base
map inline names to nicer names
未关闭
还没有人认领这个 Issue。
enhancement
- 主要语言
- Kotlin
- 星标
- 2
- 派生
- 4
- 平均合并
- 4 天 55 分钟
- 30 天内合并 PR
- 9
描述
/bookings/{bookingId}/payment:
post:
responses:
'200':
generates the response object as BookingsBookingIdPaymentPostResponse200.
Would it be useful to have the possibility to map that identifier to a nicer name?
mapping could use
- json path to nice java name
- generated java name to nice java name
the processor would have to warn if the inline name did not exists.
benefit:
it would not be necessary to define responses etc. as named schema to get a proper java class name
drawback:
harder to maintain?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
未指定任何文件、测试或入口点。首先明确名称映射应在哪里配置,以及 JSON 路径还是生成的名称属于受支持的键;在确定需要修改的生成器代码和测试之前,先定义未匹配映射的警告行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- kotlin, openapi
- 领域
- backend-api-design, tooling
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 30/100