interpretation of openapi readOnly flag in model
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- java, openapi, spring-boot
调研方向
Issue 中未标识源文件、测试或入口点。首先跟踪 generator 如何将 OpenAPI 的 readOnly 属性映射到 Jackson 访问注解,然后确定应在哪里配置 provider-versus-client 生成选项,并定义覆盖两种模式的测试。
由索引模型根据 Issue 内容生成。
描述
Given a definition like:
``yaml
Data:
type: object
properties:
status:
type: string)
readOnly: true
get generated java:
```java
public record Data {
@JsonProperty(value = "status", access = JsonProperty.Access.READ_ONLY)
String status
) {}
This is correct if the generated code is for the provider of the interface (i.e. server-side). But if the code is to be the client of the interface, the field should instead be annotated with JsonProperty.Access.WRITE_ONLY.
So, as a feature request, it would be useful if there was a code generation option that declared the intended usage of the generated code.
- 主要语言
- Kotlin
- 星标
- 56
- 派生
- 11
- 平均合并
- 4 天 10 小时
- 30 天内合并 PR
- 8
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
openapi-processor/openapi-processor-spring 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
openapi-processor/openapi-processor-spring#524 ·
维护者通常 2 天内回复
-
难度 5/5 一周以上 新手友好度 20/100
openapi-processor/openapi-processor-spring#159 · 1 条评论 ·
维护者通常 2 天内回复
-
enhancement
难度 3/5 1-2 天 新手友好度 42/100
openapi-processor/openapi-processor-spring#150 · 3 条评论 ·
维护者通常 2 天内回复
-
undecided
难度 5/5 一周以上 新手友好度 25/100
openapi-processor/openapi-processor-spring#101 · 1 条评论 ·
维护者通常 2 天内回复
-
enhancement undecided
难度 3/5 1-2 天 新手友好度 35/100
openapi-processor/openapi-processor-spring#51 ·
维护者通常 2 天内回复
查看 openapi-processor/openapi-processor-spring 的全部 Issue
相似的 Issue
-
help wanted needs investigation priority: low
难度 2/5 1-3 小时 新手友好度 62/100
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
LeanBitLab/LeanType#883 ·
维护者通常 1 天内回复
-
Heavy legs 1.12–1.17: compiler corpus goldens not regenerated for #4770可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
intellij-elixir/intellij-elixir#4782 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
komikku-app/komikku#1983 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
Seb3thehacker/gearslip#121 ·