diff --git a/src/modes/server/common.rs b/src/modes/server/common.rs index 00e7cb7..8580c8a 100644 --- a/src/modes/server/common.rs +++ b/src/modes/server/common.rs @@ -120,7 +120,7 @@ pub struct ListItemsQuery { pub count: Option, } -#[derive(Debug, Deserialize)] +#[derive(Debug, Deserialize, utoipa::ToSchema)] pub struct ItemQuery { #[serde(default = "default_allow_binary")] pub allow_binary: bool, @@ -130,7 +130,7 @@ pub struct ItemQuery { pub length: u64, } -#[derive(Debug, Deserialize)] +#[derive(Debug, Deserialize, utoipa::ToSchema)] pub struct ItemContentQuery { pub tags: Option, #[serde(default = "default_allow_binary")] diff --git a/src/services/status_service.rs b/src/services/status_service.rs index 906d07f..969fbeb 100644 --- a/src/services/status_service.rs +++ b/src/services/status_service.rs @@ -5,7 +5,6 @@ use crate::compression_engine::CompressionType; use clap::Command; use std::path::PathBuf; use std::str::FromStr; -use strum::IntoEnumIterator; pub struct StatusService; @@ -31,7 +30,7 @@ impl StatusService { Some(crate::compression_engine::default_compression_type()) }; - let mut status_info = generate_status_info(data_path, db_path, &meta_plugin_types, enabled_compression_type); + let status_info = generate_status_info(data_path, db_path, &meta_plugin_types, enabled_compression_type); // The options are now populated directly in generate_status_info // No need to modify them here