Skip to content

Conversation

bart-degreed
Copy link
Contributor

Cleanup and fixes for setting custom serializer behavior. The casing convention is now set there too.
Renamed omitNull/omitDefault query string parameters to nulls/defaults to prevent casing convention issues (note the parameter value is inverted now) and extended existing partial tests for them.

Fixes #687.
Fixes #718.
Fixes #697.

Bart Koelman added 10 commits April 9, 2020 11:40
…ulls' and 'defaults'. Making them a single word allows us to not take the casing convention into account. Note this inverts the meaning of true/false in the query string value.
… tests to cover all cases. Bugfix where default setting was never used, because the expression default(object) equals null, instead of the default value of the runtime type.
@bart-degreed bart-degreed requested a review from maurei April 13, 2020 10:22
@maurei maurei merged commit c13d950 into json-api-dotnet:master Apr 13, 2020
@bart-degreed bart-degreed deleted the newtonsoft-serializer-settings branch April 13, 2020 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants