diff --git a/crates/oapi-macros/src/schema/struct_schemas.rs b/crates/oapi-macros/src/schema/struct_schemas.rs index 856334f58..96580fc92 100644 --- a/crates/oapi-macros/src/schema/struct_schemas.rs +++ b/crates/oapi-macros/src/schema/struct_schemas.rs @@ -309,7 +309,7 @@ impl TryToTokens for NamedStructSchema<'_> { .unwrap_or(false) { tokens.extend(quote! { - .additional_properties(Some(#oapi::schema::AdditionalProperties::FreeForm(false))) + .additional_properties(#oapi::oapi::schema::AdditionalProperties::FreeForm(false)) }); }