Respect #[serde(transparent)] attribute (#17)

This commit is contained in:
Graham Esau 2020-05-16 21:16:59 +01:00
parent 509a1c3b7b
commit 5a28cef598
8 changed files with 121 additions and 5 deletions

View file

@ -19,6 +19,7 @@ static SERDE_KEYWORDS: &[&str] = &[
"skip_deserializing",
"flatten",
"remote",
"transparent",
// Special cases - `with`/`serialize_with` are passed to serde but not copied from schemars attrs to serde attrs.
// This is because we want to preserve any serde attribute's `serialize_with` value to determine whether the field's
// default value should be serialized. We also check the `with` value on schemars/serde attrs e.g. to support deriving