Skip to content
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

Fix System.Text.Json formatter's support for named arguments object #1045

Merged
merged 1 commit into from
May 17, 2024

Conversation

AArnott
Copy link
Member

@AArnott AArnott commented May 17, 2024

Replacing the Assumes.NotNull with a non-throwing null check brings this formatter in line with the other formatters.
The added unit test applies to all formatters and demonstrated before the fix that only System.Text.Json failed the test. After the fix all formatters pass.

Fixes #1028

@AArnott AArnott added this to the v2.19 milestone May 17, 2024
@AArnott AArnott requested review from RyanToth3 and ankitvarmait May 17, 2024 20:51
@AArnott AArnott enabled auto-merge May 17, 2024 20:51
@AArnott AArnott merged commit 1e8abc0 into microsoft:main May 17, 2024
5 checks passed
@AArnott AArnott deleted the fix1028 branch May 17, 2024 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants