ActiveCampaign / postmark-dotnet

A .NET library for the Postmark API
http://developer.postmarkapp.com/
Other
50 stars 46 forks source link

Regression in 4.8+ | no longer able to use camel case serialization #135

Open rjgotten opened 5 months ago

rjgotten commented 5 months ago

With the move to System.Text.Json in version 4.8+ it is no longer possible to configure requests for template models to be serialized with camel case conversion.

System.Text.Json does not have modifiable global default serializer settings like Newtonsoft.Json has and does not feature attribute-level control over the casing strategy. The only recourse to fix existing code is to painstakingly add hand-mapped [JsonProperty] remapping to camelcased names for each property on each transitively accessed model.

This is, frankly, an entirely shitty experience. Update the library to support externally supplied serializer options, please.