diff --git a/backend/src/handler.rs b/backend/src/handler.rs index 4d3889e..1e5c076 100644 --- a/backend/src/handler.rs +++ b/backend/src/handler.rs @@ -68,32 +68,33 @@ async fn server_header_middleware(req: Request, next: Next) -> Response self::api::setting::put_setting, ), components(schemas( - crate::dto::IdResponse, - crate::dto::NameResponse, - crate::dto::User, - crate::dto::Visibility, - crate::dto::Mention, - crate::dto::File, - crate::dto::Emoji, crate::dto::CreateContentReaction, + crate::dto::CreateEmoji, crate::dto::CreateEmojiReaction, - crate::dto::CreateReaction, - crate::dto::Reaction, - crate::dto::Post, + crate::dto::CreateFollow, crate::dto::CreatePost, - crate::dto::LocalFile, - crate::dto::LocalEmoji, - crate::dto::CreateEmoji, + crate::dto::CreateReaction, + crate::dto::CreateReport, + crate::dto::Emoji, + crate::dto::File, crate::dto::Follow, - crate::dto::CreateFollow, - crate::dto::Setting, + crate::dto::IdResponse, + crate::dto::LocalEmoji, + crate::dto::LocalFile, + crate::dto::Mention, + crate::dto::NameResponse, crate::dto::Object, + crate::dto::ObjectStoreType, + crate::dto::Post, + crate::dto::Reaction, crate::dto::Report, - crate::dto::CreateReport, + crate::dto::Setting, + crate::dto::User, + crate::dto::Visibility, crate::queue::Event, - crate::queue::Update, crate::queue::Notification, crate::queue::NotificationType, + crate::queue::Update, self::api::auth::PostLoginReq, self::api::auth::PostLoginResp, self::api::setting::PostSettingReq, diff --git a/backend/src/handler/api/setting.rs b/backend/src/handler/api/setting.rs index f34f128..11cbfcd 100644 --- a/backend/src/handler/api/setting.rs +++ b/backend/src/handler/api/setting.rs @@ -7,7 +7,7 @@ use utoipa::ToSchema; use crate::{ ap::person::PersonUpdate, - dto::{self, Setting}, + dto::{ObjectStoreType, Setting}, entity::{local_file, setting}, error::{Context, Result}, format_err, @@ -90,7 +90,7 @@ pub struct PutSettingReq { #[serde(default)] pub theme_color: Option, #[serde(default)] - pub object_store_type: Option, + pub object_store_type: Option, #[serde(default)] pub object_store_s3_bucket: Option, #[schema(value_type = Option, format = "url")]