Skip to content

Newtonsoft serializer settings #720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Apr 13, 2020
Merged

Newtonsoft serializer settings #720

merged 12 commits into from
Apr 13, 2020

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