Allow excluding schemas and operations from all APIs during extraction

Open
#316 1 comment 0 reactions 0 assignees View on GitHub

@cdayne is already working on this.

Since Nov 5, 2026.

  • #335 by @cdayne — open
  • #338 by @cdayne — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
api, cli

Research direction

Start with the apiops extract command and its filter handling, focusing on how top-level schemas: [] and --no-transitive are interpreted. Trace the code that creates per-API schema and operation artifacts, then identify the relevant extraction tests or fixtures. Done means a single filter excludes schemas and operations from every API without repeating an entry for each API, while existing filters continue to work.

Written by the indexing model from the issue text.

Description

stale type:feature
Problem or use case

we are using apiops-cli 1.0.4 to extract all APIs with this filter:

apis: ['*']
schemas: []

The extraction also uses --no-transitive. It still produces schema and operation artifacts inside individual API folders:

apis/<api>/schemas/<schema>/schemaInformation.json
apis/<api>/operations/<operation>/operationInformation.json

From what we can see, the top-level schemas: [] applies to service-level schemas. Excluding schemas and operations within APIs requires a separate nested filter entry for each API.

Proposed solution

Add a filter option to exclude schemas and operations from all APIs, without requiring a separate entry for each API .

Affected command

apiops extract

Dominant language
TypeScript
Stars
44
Forks
14
PR merge metrics
No merged PRs in 30d

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/apiops-cli

All issues in Azure/apiops-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.