fix: omit structured_content when None instead of serializing as null (#6499)

This commit is contained in:
Andrew Harvard
2026-01-17 16:11:15 -05:00
committed by GitHub
parent 3cadb9c5c0
commit d69a372323
+1
View File
@@ -133,6 +133,7 @@ pub struct CallToolRequest {
#[derive(Serialize, utoipa::ToSchema)]
pub struct CallToolResponse {
content: Vec<Content>,
#[serde(skip_serializing_if = "Option::is_none")]
structured_content: Option<Value>,
is_error: bool,
#[serde(skip_serializing_if = "Option::is_none")]