microsoft / microsoft/OpenAPI.NET

Consolidate slicing to OpenApi.NET lib

未關閉
#1,468 0 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

@peombwa 已經在處理了。

開始於 2023年11月14日。

status:needs-discussion
主要語言
C#
星號
1.6k
分支
286
平均合併
6 小時 38 分鐘
30 天內合併 PR
35

描述

Is your feature request related to a problem? Please describe.
To improve the efficiency and consistency of creating subsets by downstream tools, we should look at consolidating slicing functionality into the OpenApi.NET library. The functionality will be used to support dynamic creation of OpenAPI subsets in SK.

Describe the solution you'd like
The library should offer methods on the OpenApiDocument instance that support slicing based on the following OpenAPI constructs:

  • Tags: This functionality is currently available in both Hidi and DevX API.
  • OperationIds: This functionality is also present in Hidi and DevX API.
  • Paths: This functionality is currently implemented in Kiota. We should adopt Kiota's path filtering syntax for this purpose.

Describe alternatives you've considered
While using a predicate works, it is a low-level solution that necessitates defining the same slicing logic in multiple places where we depend on the library. Consolidating the slicing functionality into the OpenApi.NET library would eliminate this redundancy.

Additional context
N/A

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。