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

Serialization casing not honored for new System.Text.Json in .net core 3.1 #2652

Open
groogiam opened this issue Jan 26, 2020 · 1 comment
Open

Comments

@groogiam
Copy link

Control over the serialization casing looks like it is broken when using the new System.Text.Json in .NET core 3.1

#2216 says casing is controlled by the AddJsonOptions which prior to ASP.NET Core 3.1 the JSON.NET implementation.

When using the following (which utilizes System.Text.Json) the casing changes back to the default.

.AddJsonOptions(o =>
                {
                    //preserve poco casing
                    o.JsonSerializerOptions.PropertyNamingPolicy = null;
                })

The expected result is that the casing of the .NET classes be maintained when this setting is used.

@RicoSuter
Copy link
Owner

Not possible st the moment, you need to describe the serializer with the neetondoft json settings

RicoSuter/NJsonSchema#1014

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

No branches or pull requests

2 participants