Skip to content
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

Fix field 'required' behavior to match DRF #38

Merged
merged 1 commit into from
Sep 28, 2017

Conversation

kellycampbell
Copy link
Contributor

Non-required fields with None values are now omitted from the
serialization. Also required MethodFields with None value trigger
an exception now.

Non-required fields with None values are now omitted from the
serialization. Also required MethodFields with None value trigger
an exception now.
@coveralls
Copy link

coveralls commented Dec 21, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling de32309 on kellycampbell:master into 8b23833 on clarkduvall:master.

@ahankinson
Copy link
Contributor

@clarkduvall any chance that either this or #25 could be merged in? I've been running a local fork for a while because serpy will blow up if it encounters an object with a missing key. It would be great to be able to bring it back to the main repo.

@clarkduvall
Copy link
Owner

This looks good, sorry for the (super long) delay. I'll try to do a release sometime today with this change.

@clarkduvall clarkduvall merged commit ba5f43e into clarkduvall:master Sep 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants