Add JsonSourceGenerationOptions.UseStringEnumConverter (#88984)
authorEirik Tsarpalis <eirik.tsarpalis@gmail.com>
Mon, 17 Jul 2023 19:27:48 +0000 (20:27 +0100)
committerGitHub <noreply@github.com>
Mon, 17 Jul 2023 19:27:48 +0000 (20:27 +0100)
commitf83580df1d7160fd8fef3a9658643e0e6fe7ccfc
tree8e3cedb744e92a86edf61bc9072f81c73cca0594
parent659c645906c3fe9ec872309b5ac87f34e8cf6ff2
Add JsonSourceGenerationOptions.UseStringEnumConverter (#88984)

* Add JsonSourceGenerationOptions.UseStringEnumConverter.

* Fix failing tests in browser-wasm
src/libraries/System.Text.Json/Common/JsonSourceGenerationOptionsAttribute.cs
src/libraries/System.Text.Json/gen/Helpers/KnownTypeSymbols.cs
src/libraries/System.Text.Json/gen/JsonSourceGenerator.Parser.cs
src/libraries/System.Text.Json/gen/Model/SourceGenerationOptionsSpec.cs
src/libraries/System.Text.Json/ref/System.Text.Json.cs
src/libraries/System.Text.Json/src/System.Text.Json.csproj
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonNumberEnumConverter.cs [new file with mode: 0644]
src/libraries/System.Text.Json/tests/System.Text.Json.SourceGeneration.Tests/JsonSourceGenerationOptionsTests.cs
src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/EnumConverterTests.cs