Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect if serde_as is used on
Option
fields and add default
to re…
…store support for missing fields A `with` or `deserialize_with` on an `Option` field removes the ability to allow missing fields. This modification detects if the field is `Option` and the transformation is `Option<T>`. In this case it is likely that the missing field behavior is desired. A `no_default` can be added to supress this new behavior. This commit does not include any documentation changes. Closes #185
- Loading branch information
Showing
2 changed files
with
228 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters