Extend JsonSourceGenerationOptionsAttribute to have feature parity with JsonSerialize...
authorEirik Tsarpalis <eirik.tsarpalis@gmail.com>
Fri, 14 Jul 2023 16:37:45 +0000 (17:37 +0100)
committerGitHub <noreply@github.com>
Fri, 14 Jul 2023 16:37:45 +0000 (17:37 +0100)
commitacedeb273be7f0ec2c815eba08d3ed9b2c85bafc
tree6c14595bdd6037f1c211399025b01389bea285fd
parentd029ecd3123e594f926e4368cb0e2c9f9d89875d
Extend JsonSourceGenerationOptionsAttribute to have feature parity with JsonSerializerOptions. (#88753)
18 files changed:
src/libraries/System.Text.Json/Common/JsonCommentHandling.cs [moved from src/libraries/System.Text.Json/src/System/Text/Json/JsonCommentHandling.cs with 100% similarity]
src/libraries/System.Text.Json/Common/JsonSerializerDefaults.cs [moved from src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerDefaults.cs with 100% similarity]
src/libraries/System.Text.Json/Common/JsonSourceGenerationOptionsAttribute.cs
src/libraries/System.Text.Json/Common/JsonUnknownTypeHandling.cs [moved from src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonUnknownTypeHandling.cs with 100% similarity]
src/libraries/System.Text.Json/gen/JsonSourceGenerator.Emitter.cs
src/libraries/System.Text.Json/gen/JsonSourceGenerator.Parser.cs
src/libraries/System.Text.Json/gen/Model/ContextGenerationSpec.cs
src/libraries/System.Text.Json/gen/Model/PropertyGenerationSpec.cs
src/libraries/System.Text.Json/gen/Model/SourceGenerationOptionsSpec.cs [new file with mode: 0644]
src/libraries/System.Text.Json/gen/System.Text.Json.SourceGeneration.targets
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/JsonSerializerContext.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.cs
src/libraries/System.Text.Json/tests/Common/JsonTestHelper.cs
src/libraries/System.Text.Json/tests/System.Text.Json.SourceGeneration.Tests/JsonSourceGenerationOptionsTests.cs [new file with mode: 0644]
src/libraries/System.Text.Json/tests/System.Text.Json.SourceGeneration.Tests/System.Text.Json.SourceGeneration.Tests.targets
src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/OptionsTests.cs