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 ·