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

Nested.default — incorrect documentation #701

Closed
Inego opened this issue Dec 11, 2017 · 1 comment
Closed

Nested.default — incorrect documentation #701

Inego opened this issue Dec 11, 2017 · 1 comment

Comments

@Inego
Copy link

Inego commented Dec 11, 2017

Nested field documentation says that the default parameter may be used to serialize None values:
:param default: Default value to if attribute is missing or None
However, this does not correspond to reality: default values are only used to serialize missing fields. And it seems that there is no way to make the default value be used for serialization of None values — by fine-tuning the field parameters, at least.

sloria added a commit that referenced this issue Jan 6, 2018
The semantics of default are the same for Nested as they are for Field

fixes #701
@sloria
Copy link
Member

sloria commented Jan 6, 2018

Good catch. I've removed the default documentation for Nested because the semantics are the same as Field.

@sloria sloria closed this as completed Jan 6, 2018
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

No branches or pull requests

2 participants