Skip to content

Delete dead code in DelegateOpenApiDocumentTransformer - #67921

Merged
Youssef1313 merged 2 commits into
mainfrom
dev/ygerges/DelegateOpenApiDocumentTransformer
Jul 21, 2026
Merged

Youssef1313 merged 2 commits into
mainfrom
dev/ygerges/DelegateOpenApiDocumentTransformer

Conversation

@Youssef1313

@Youssef1313 Youssef1313 commented Jul 20, 2026 •

Copy link
Copy Markdown
Member

Deleted unused internal constructor and cleaned up DelegateOpenApiDocumentTransformer

The only single usage of this class is:

DocumentTransformers.Add(new DelegateOpenApiDocumentTransformer(transformer));

which is Func<OpenApiDocument, OpenApiDocumentTransformerContext, CancellationToken, Task>.

So, the class never holds an operation transformer.

Copilot AI review requested due to automatic review settings July 20, 2026 19:13
@Youssef1313
Youssef1313 requested a review from a team as a code owner July 20, 2026 19:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR simplifies DelegateOpenApiDocumentTransformer by removing unused/obsolete code paths, leaving a single, document-transformer-only implementation aligned with its current usage from OpenApiOptions.

Changes:

  • Removed the unused operation-transformer constructor/field and the related per-operation transformation logic.
  • Simplified construction to a single delegate-backed document transformer.

@Youssef1313
Youssef1313 merged commit e4598cc into main Jul 21, 2026
24 checks passed
@Youssef1313
Youssef1313 deleted the dev/ygerges/DelegateOpenApiDocumentTransformer branch July 21, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants