Skip to content

Commit

Permalink
Fix API doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pbzweihander committed Aug 31, 2024
1 parent 339ea78 commit 9297991
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
35 changes: 18 additions & 17 deletions backend/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,32 +68,33 @@ async fn server_header_middleware<B>(req: Request<B>, next: Next<B>) -> 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,
Expand Down
4 changes: 2 additions & 2 deletions backend/src/handler/api/setting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -90,7 +90,7 @@ pub struct PutSettingReq {
#[serde(default)]
pub theme_color: Option<String>,
#[serde(default)]
pub object_store_type: Option<dto::ObjectStoreType>,
pub object_store_type: Option<ObjectStoreType>,
#[serde(default)]
pub object_store_s3_bucket: Option<String>,
#[schema(value_type = Option<String>, format = "url")]
Expand Down

0 comments on commit 9297991

Please # to comment.