Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#294 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
api, cli

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
TypeScript
スター
29
フォーク
10
平均マージ
1日 13時間
マージ済み PR(30日)
23

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Azure/apiops-cli のほかの issue

Azure/apiops-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。