fix: resolve utoipa schema generation errors by removing unsupported description attributes and creating specific response types
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
This commit is contained in:
@@ -4,7 +4,7 @@ use axum::{
|
||||
response::Json,
|
||||
};
|
||||
|
||||
use crate::modes::server::common::{AppState, ApiResponse};
|
||||
use crate::modes::server::common::{AppState, ApiResponse, StatusInfoResponse};
|
||||
use crate::common::status::{generate_status_info, StatusInfo};
|
||||
use crate::meta_plugin::MetaPluginType;
|
||||
|
||||
@@ -14,7 +14,7 @@ use crate::meta_plugin::MetaPluginType;
|
||||
summary = "Get system status",
|
||||
description = "Retrieve comprehensive system status information including database configuration, data storage paths, supported compression engines, available metadata plugins, and system capabilities. This endpoint is useful for health checks and system diagnostics.",
|
||||
responses(
|
||||
(status = 200, description = "Successfully retrieved complete system status including database path, data directory, supported plugins, and system information", body = ApiResponse<StatusInfo>),
|
||||
(status = 200, description = "Successfully retrieved complete system status including database path, data directory, supported plugins, and system information", body = StatusInfoResponse),
|
||||
(status = 401, description = "Unauthorized - Invalid or missing authentication credentials"),
|
||||
(status = 500, description = "Internal server error - Failed to retrieve status information due to system error")
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user