diff options
Diffstat (limited to 'release-notes/7.0/preview/api-diff/rc1/Microsoft.NETCore.App/7.0-rc1_System.Text.Json.Serialization.md')
-rw-r--r-- | release-notes/7.0/preview/api-diff/rc1/Microsoft.NETCore.App/7.0-rc1_System.Text.Json.Serialization.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/release-notes/7.0/preview/api-diff/rc1/Microsoft.NETCore.App/7.0-rc1_System.Text.Json.Serialization.md b/release-notes/7.0/preview/api-diff/rc1/Microsoft.NETCore.App/7.0-rc1_System.Text.Json.Serialization.md new file mode 100644 index 00000000..8ed9b322 --- /dev/null +++ b/release-notes/7.0/preview/api-diff/rc1/Microsoft.NETCore.App/7.0-rc1_System.Text.Json.Serialization.md @@ -0,0 +1,14 @@ +# System.Text.Json.Serialization + +``` diff + namespace System.Text.Json.Serialization { ++ public sealed class JsonRequiredAttribute : JsonAttribute { ++ public JsonRequiredAttribute(); ++ } +- [RequiresDynamicCodeAttribute("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +- public class JsonStringEnumConverter : JsonConverterFactory ++ [RequiresDynamicCodeAttribute("JsonStringEnumConverter cannot be statically analyzed and requires runtime code generation. Consider authoring a custom converter that is not a factory to work around the issue. See https://github.com/dotnet/runtime/issues/73124.")] ++ public class JsonStringEnumConverter : JsonConverterFactory + } +``` + |