-
Notifications
You must be signed in to change notification settings - Fork 5k
Add JsonSourceGenerationOptions.UseStringEnumConverter #88984
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
Add JsonSourceGenerationOptions.UseStringEnumConverter #88984
Conversation
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis Issue DetailsThis PR:
Fix #87195.
|
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonNumberEnumConverter.cs
Show resolved
Hide resolved
src/libraries/System.Text.Json/Common/JsonSourceGenerationOptionsAttribute.cs
Show resolved
Hide resolved
Any idea when such a feature will be rolled out? |
It should be available starting with .NET 8 Preview 7 |
@eiriktsarpalis any chance it will be backported to .NET7? Thanks for the super fast answer. |
The bar for servicing .NET 7 is security issues or substantially broken .NET 7 features. You can still use the latest STJ version in .NET 7 using the NuGet package though. |
This PR:
JsonSourceGenerationOptionsAttribuet.UseStringEnumConverter
property.JsonNumberEnumConverter<TEnum>
converter.Fix #87195.