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

PropertyNamingPolicy null walue #93

Open
amoraller opened this issue Jan 24, 2024 · 1 comment
Open

PropertyNamingPolicy null walue #93

amoraller opened this issue Jan 24, 2024 · 1 comment

Comments

@amoraller
Copy link

I think, we should support unsetted value for JsonRpcServerOptions.DefaultDataJsonSerializerOptions.PropertyNamingPolicy

Today, i use this policy

class UnsetNamingPolicy : JsonNamingPolicy
{
    public override string ConvertName(string name) => name;
}

For example System.Text.Json support null value for policy
https://github.com/dotnet/corefx/blob/e667c29636a622eb4f9493f75232b44e0ae90b29/src/System.Text.Json/src/System/Text/Json/Serialization/JsonPropertyInfo.cs#L106-L119

@OptimumDev
Copy link
Collaborator

Hello! Thank you for the issue.
You are right, null PropertyNamingPolicy should be supported and we tried to achive it, but looks like we missed couple of spots.
We will fix it when we will able to, or you can contribute by PR 😉

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