jsreport / jsreport-dotnet-client

jsreport remote client for c#
MIT License
3 stars 4 forks source link

3.0.1 -> 3.1.0 ContractResolverForDataProperty changes the default JSON behavior #1

Closed newtonion closed 4 years ago

newtonion commented 4 years ago

Hello,

Prior to the 3.1.0 update the default behavior when generating a report seems to be the same as using a CamelCasePropertyNamesContractResolver. With this latest change, by default, whatever casing is using on the object being passed in is used.

Suggest using the CamelCasePropertyNamesContractResolver by default to maintain 3.0.1 behavior.

pofider commented 4 years ago

This was intentional and thoughtful. I don't see any reason why we should change the casing of the user's properties on the input data. The original behavior was rather a bug. In the latest we don't change casing, if someone wants this, there is the ReportingService.ContractResolverForDataProperty you can use to change it.