api-macros: Fix (de)serialization of newtype bodies
This commit is contained in:
parent
1541f2957b
commit
eab96c7808
@ -427,7 +427,7 @@ impl TryFrom<Field> for RequestField {
|
||||
|
||||
field_kind = Some(match meta {
|
||||
Meta::Word(ident) => match &ident.to_string()[..] {
|
||||
"body" => RequestFieldKind::Body,
|
||||
"body" => RequestFieldKind::NewtypeBody,
|
||||
"raw_body" => RequestFieldKind::NewtypeRawBody,
|
||||
"path" => RequestFieldKind::Path,
|
||||
"query" => RequestFieldKind::Query,
|
||||
|
Loading…
x
Reference in New Issue
Block a user