[Breaking change]: ValidationProblemDetails
and ProblemDetails
no longer use custom converters
#504
Labels
8.0.0
Announcement
Breaking change
Documented
The breaking change has been published to the .NET Core docs
Description
Prior to .NET 8 Preview 2,
ValidationProblemDetails
andProblemDetails
type used custom converters to support JSON serialization due to a lack of support for theIgnoreNullValues
option. Now that this option is supported by the S.T.J APIs, we've removed the custom converters in the framework in favor of the serialization provided by the framework.As a result of this, the properties in the
ValidationProblemDetails
andProblemDetails
types no longer indiscriminately assume lowercase type names. Developers must specific aJsonNamingPolicy
to get the correct behavior.Version
.NET 8 Preview 2
Previous behavior
New behavior
Type of breaking change
Reason for change
Now that
IgnoreNullValues
is supported by the S.T.J APIs, we've removed the custom converters in the framework in favor of the serialization provided by the framework.Recommended action
Provide a JSON serializer options with the correct details.
Affected APIs
ValidationProblemDetails
ProblemDetails
The text was updated successfully, but these errors were encountered: