System.Text.Json default contract resolvers fail early on misconfigured attributes #71966
Labels
area-System.Text.Json
enhancement
Product code improvement that does NOT require public API changes/additions
Milestone
The default System.Text.Json contract resolvers will fail early if they encounter misconfigured attributes such as the following:
JsonPropertyNameAttribute
).JsonConverterAttribute
.JsonExtensionDataAttribute
applied to unsupported property types or duplicateJsonExtensionDataAttribute
properties.Misconfigured attributes in third-party libraries are a real problem and as such one of the goals for contract customization is for users to be able to manually correct misconfigured attributes. In the future we should update our validation logic so that it happens post-configuration, where feasible.
The text was updated successfully, but these errors were encountered: