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