Skip to content

[release/9.0] [OpenAPI] Use invariant culture for TextWriter #62239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: release/9.0
Choose a base branch
from

Conversation

martincostello
Copy link
Member

[OpenAPI] Use invariant culture for TextWriter

Use culture-invariant TextWriter implementation for OpenAPI.

Port of #62193 for .NET 9.

Description

Ensure OpenAPI documents are written to a culture-invariant TextWriter implementation.

To avoid any accidental changes to SignalR's use of Utf8BufferTextWriter I've removed the use of the writer pooling for OpenAPI and instead a new instance is created every time.

Fixes #60628

@captainsafia If you think this change is worth taking forward for approval I can make any relevant changes you need for that first. I think I've worked out why I couldn't repro the issue in #62193, so I'll make some changes there to check that locally and then push it up to the PR targeting main.

Ensure OpenAPI documents are written to a culture-invariant `TextWriter` implementation.

Resolves dotnet#60628.
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jun 4, 2025
Copy link
Contributor

Thanks for your PR, @@martincostello. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service bot added this to the 9.0.x milestone Jun 4, 2025
Copy link
Contributor

Hi @@martincostello. If this is not a tell-mode PR, please make sure to follow the instructions laid out in the servicing process document.
Otherwise, please add tell-mode label.

@martincostello martincostello added feature-openapi area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc labels Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc community-contribution Indicates that the PR has been added by a community member feature-openapi
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant