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 摘要。