Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug] Selective API operation extraction filter does not filter paths in specification.yaml

Aperta
#294 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
api, cli

Direzione di ricerca

Start with the apiops extract entry point and the filter configuration at configuration/extractor.config.yaml. Compare how the operations allow-list is applied to artifacts/apis/api1/operations/ versus artifacts/apis/api1/specification.yaml. Done means the specification contains only the selected operation paths while excluded operation artifacts remain absent.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

type:bug
Command that triggered the bug

apiops extract

Expected behavior

When an API is configured with an operations allow-list, the generated specification.yaml should contain only those selected operations.

For example:

apis:
  - api1:
      operations:
        - create-resources

If the api1 API contains create-resources and test, only create-resources should appear in: specification.yaml



### Actual behavior

The extractor correctly filters the individual operation artifacts. Only the selected operation is generated under:

artifacts/apis/api1/operations/

However, artifacts/apis/api1/specification.yaml still contains the other operations path.

As a result, publishing the extracted artifacts can create the excluded operation in the target APIM instance, even though it was not listed in the extractor filter.

This is the same behavior described in for the older apiops [Azure/apiops#854](https://github.com/Azure/apiops/issues/854).

### apiops CLI version

1.0.3

### Environment details

APIOps CLI package: @azure-tools/apiops-cli
APIOps CLI version: 1.0.3
Node.js: 22.x or later
Package installation: npm ci
Command: apiops extract
Filter option: --filter configuration/extractor.config.yaml

### CI/CD environment

Azure DevOps

### Is this bug blocking you?

Yes
Lingua principale
TypeScript
Stelle
29
Fork
10
Merge medio
1g 13h
PR unite (30g)
23

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/apiops-cli

Tutte le issue di Azure/apiops-cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.