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

Field take default on feature #1767

Closed
wants to merge 5 commits into from
Closed

Field take default on feature #1767

wants to merge 5 commits into from

Conversation

dormeiri
Copy link

@dormeiri dormeiri commented Mar 19, 2021

Fixes #1766

I noticed that most of the discussion is focused on deserialization, but I have use case where I need this feature for serialization.

This PR adds the ability for the user to extend the logic of when default value is taken during serialization.

TODO:

  • Tests
  • Docs

@sloria
Copy link
Member

sloria commented Mar 28, 2021

Something similar is being worked on in #1381 but still needs discussion before landing. Let's continue discussion there

@sloria sloria closed this Mar 28, 2021
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.

Take default value when value is None
3 participants