Skip to content

OpenAPI: Delete unused overload of WillBeComponentized - #68135

Merged
Youssef1313 merged 1 commit into
mainfrom
dev/ygerges/deadcode-componentized
Aug 3, 2026
Merged

Youssef1313 merged 1 commit into
mainfrom
dev/ygerges/deadcode-componentized

Conversation

@Youssef1313

Copy link
Copy Markdown
Member

We never used the out parameter. This cleans the logic up to have a single overload without the out parameter.

Copilot AI review requested due to automatic review settings July 31, 2026 12:56
@Youssef1313
Youssef1313 requested a review from a team as a code owner July 31, 2026 12:56

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

Removes an unused WillBeComponentized overload (the one exposing an out schemaId) from the OpenAPI JSON schema extension helpers, simplifying the componentization check logic in the OpenAPI schema generation pipeline.

Changes:

  • Removed the WillBeComponentized(JsonNode, out string?) overload and its related System.Diagnostics.CodeAnalysis usage.
  • Inlined the schema-id presence check into the remaining WillBeComponentized(JsonNode) overload.

@snemeckayova snemeckayova 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.

LGTM

@Youssef1313
Youssef1313 merged commit 77d9143 into main Aug 3, 2026
27 checks passed
@Youssef1313
Youssef1313 deleted the dev/ygerges/deadcode-componentized branch August 3, 2026 08:38
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-rc1 milestone Aug 4, 2026
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