microsoft / microsoft/OpenAPI.NET

Consolidate slicing to OpenApi.NET lib

Aberta
#1,468 0 comentários 0 reações 1 responsável Ver no GitHub

@peombwa já está trabalhando nisso.

Desde 14/11/2023.

status:needs-discussion
Linguagem predominante
C#
Estrelas
1.6k
Forks
286
Merge médio
6h 38min
PRs com merge (30d)
35

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.