paperclip
paperclip copied to clipboard
Actix plugin: Flattening and skipping fields in items
As a follow-up to #70, we should support #[serde(flatten)]
and #[serde(skip)]
in fields.
And... I don't know whether you already support any of these, I just know that I will need all this before starting to use paperclip
:
-
#[serde(tag = "type")]
-
#[serde(tag = "type", content = "result")]
-
#[serde(rename = "name")]
We do support #[serde(rename = "...")]
, but tag is something that has to do with enums right? We don't support enums with complex variants as of now, because it can't be represented in swagger (v2). It will be supported in 0.5.0, when we move to v3.
Oh yeah, that's right.
Is there any follow-up to this with the 0.7.0 release? :)
IIRC we currently support both skip and flatten.