You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operation filters excluded individual artifacts but left the full API specification intact, allowing publishing to recreate excluded operations.
Consistent filtering: Apply existing operation matching to YAML/JSON OpenAPI and Swagger specifications, including x-ms-paths. Remove excluded methods and paths with no remaining operations.
Preserved behavior: Retain shared definitions and metadata. Leave specifications unchanged when operation filters are omitted; leave GraphQL, WSDL, and WADL handling unchanged.
For example:
apis:
- api1:
operations:
- create-resources
The exported specification now contains only create-resources, matching the operation artifacts.
CopilotAI
changed the title
[WIP] Fix selective API operation extraction filter for specification.yaml
Honor operation extraction filters in OpenAPI specifications
Sep 25, 2026
The reason will be displayed to describe this comment to others. Learn more.
Copilot review overview
🔵 Needs a closer look
YAML floating-point metadata can still be silently rounded during filtering.
Review effort: Balanced Findings: None
Previously missed (1)
In code that hasn't changed since last review
Preserve YAML float precision during filtering
src/services/api-extractor.ts:449
YAML floating-point scalars are still parsed through CORE_SCHEMA as JavaScript numbers, so this path remains lossy whenever filtering modifies the document. For example, an unrelated value such as 9223372036854775807.0 or a high-precision decimal is rounded before yaml.dump; the custom type only preserves tokens resolved as YAML integers. Please preserve the raw representation of YAML float/exponent tokens as well (or use a lossless YAML AST) so filtering operations cannot change unrelated schema examples or bounds.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Operation filters excluded individual artifacts but left the full API specification intact, allowing publishing to recreate excluded operations.
x-ms-paths. Remove excluded methods and paths with no remaining operations.For example:
The exported specification now contains only
create-resources, matching the operation artifacts.