openapi-processor / openapi-processor/openapi-processor-base
use x-tension value in annotation mapping
未关闭
还没有人认领这个 Issue。
enhancement
- 主要语言
- Kotlin
- 星标
- 2
- 派生
- 4
- 平均合并
- 4 天 55 分钟
- 30 天内合并 PR
- 9
描述
Having an x-tension property with value
Foo:
type: object
properties:
bar:
type: integer
x-foobar: raboof
it would probably be nice if I could pass the value to the annotation.
how wold the mapping look like?
extensions:
# the mapping expects the source type to be a `string`. It would need
# - an identifier to represent the x-tension value and
# - an identifier as placeholder for the annotation parameter
# placeholder could look like this
x-foobar: ?? @ io.openapiprocessor.annotation.Foobar(value = {value})
# value source type could be this?
x-foobar: {value} @ io.openapiprocessor.annotation.Foobar(value = {value})
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,查看 issue 中展示的扩展映射语法,并追踪当前如何生成 x-foobar 注解。确定应如何表示 x-tension 值和注解参数占位符,然后定义哪些映射行为和覆盖范围能够证明该值已传递到生成的注解中。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- kotlin
- 领域
- backend-api-design, tooling
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100