diff --git a/crates/common/src/http/mod.rs b/crates/common/src/http/mod.rs index b76c8063..b98c35a5 100644 --- a/crates/common/src/http/mod.rs +++ b/crates/common/src/http/mod.rs @@ -98,6 +98,7 @@ use tower_http::cors::{ CorsLayer, }; use url::Url; +use utoipa::ToSchema; use self::metrics::log_http_request; use crate::{ @@ -847,7 +848,7 @@ pub async fn stats_middleware( pub struct InstanceNameExt(pub String); -#[derive(Copy, Clone, Debug, Eq, PartialEq, Serialize, Deserialize)] +#[derive(ToSchema, Copy, Clone, Debug, Eq, PartialEq, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub enum RequestDestination { ConvexCloud,