-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
JsonSourceGenerationOptionsAttribute should provide an option for enabling string enum serialization globally #87195
Labels
Milestone
Comments
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis Issue Details
Originally posted by @terrajobst in #79311 (comment)
|
eiriktsarpalis
added
the
api-suggestion
Early API idea and discussion, it is NOT ready for implementation
label
Jun 6, 2023
Related to #57321. |
eiriktsarpalis
added
blocking
Marks issues that we want to fast track in order to unblock other important work
api-ready-for-review
API is ready for review, it is NOT ready for implementation
and removed
api-suggestion
Early API idea and discussion, it is NOT ready for implementation
labels
Jul 7, 2023
namespace System.Text.Json.Serialization;
public partial class JsonSourceGenerationOptionsAttribute
{
public bool UseStringEnumConverter { get; set; } = false;
}
public partial class JsonNumberEnumConverter<TEnum> : JsonConverterFactory
where TEnum : struct, Enum
{
public JsonNumberEnumConverter();
public sealed override bool CanConvert(System.Type typeToConvert);
public sealed override JsonConverter CreateConverter(Type typeToConvert, JsonSerializerOptions options);
} |
terrajobst
added
api-approved
API was approved in API review, it can be implemented
and removed
api-ready-for-review
API is ready for review, it is NOT ready for implementation
labels
Jul 13, 2023
eiriktsarpalis
removed
the
blocking
Marks issues that we want to fast track in order to unblock other important work
label
Jul 17, 2023
ghost
added
the
in-pr
There is an active PR which will close this issue when it is merged
label
Jul 17, 2023
ghost
removed
the
in-pr
There is an active PR which will close this issue when it is merged
label
Jul 17, 2023
ghost
locked as resolved and limited conversation to collaborators
Aug 17, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Originally posted by @terrajobst in #79311 (comment)
API Proposal
API Usage
Related to #81985 which tracks support for compile-time control of
JsonSerializerDefaults.Web
.cc @halter73
The text was updated successfully, but these errors were encountered: