Skip to content

Commit

Permalink
fix(oapi): ToSchema macros cannot be used with #[serde(flatten)] macros
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Jul 10, 2023
1 parent 7164208 commit a6eed4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oapi-macros/src/schema/struct_schemas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ impl ToTokens for NamedStructSchema<'_> {

if !flatten_fields.is_empty() {
tokens.extend(quote! {
#oapi::oapi::AllOf::new()
#oapi::oapi::schema::AllOf::new()
});

for field in flatten_fields {
Expand Down

0 comments on commit a6eed4f

Please sign in to comment.