diff --git a/src/prelude.rs b/src/prelude.rs index 33ba3a6a9..e18a3104c 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -54,7 +54,13 @@ pub mod model { feature = "openapi_redoc", feature = "openapi_scalar" ))] -pub use utoipa::{path, OpenApi, ToSchema}; +pub use utoipa; +#[cfg(any( + feature = "openapi_swagger", + feature = "openapi_redoc", + feature = "openapi_scalar" +))] +pub use utoipa::{openapi::*, path, schema, OpenApi, ToSchema}; #[cfg(any( feature = "openapi_swagger", feature = "openapi_redoc",