Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

steveharter
Copy link
Contributor

Fixes https://github.com/dotnet/corefx/issues/39741

Add capability to specify custom converter for an Enum by using [JsonConverter] just like we support for properties, etc.

This does affect the ref/System.Text.Json.cs but only to change the attribute targets (not really an API change).

@ericstj assuming approved for master, requesting approval for release/3.0.

@steveharter
Copy link
Contributor Author

Test failures for (musl_x64_Debug, MacOS x64_Debug and Windows x86_Release) not related: Infrastructure Execution Logs on:
System.Net.NameResolution.Functional.Tests
System.Net.Security.Tests
System.Security.Cryptography.Xml.Tests
System.Xml.RW.RwFactory.Tests

@steveharter steveharter merged commit de61fb2 into dotnet:master Jul 26, 2019
@steveharter steveharter deleted the EnumConverter branch July 26, 2019 17:20
steveharter added a commit to steveharter/dotnet_corefx that referenced this pull request Jul 26, 2019
@karelz karelz added this to the 5.0 milestone Aug 3, 2019
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JsonConverterAttribute cannot be applied to an Enum
3 participants