fix local markdown attachment regressions

This commit is contained in:
lix-2026
2026-05-29 11:13:05 +08:00
parent 1109e3c0d8
commit cbe789e034
63 changed files with 3249 additions and 1502 deletions
+1
View File
@@ -299,6 +299,7 @@ mod tests {
}),
block_projection_version: 1,
projection_source: "fixture".into(),
attachment_refs: serde_json::json!([]),
},
tree: page_aggregate::PageTree {
page_subtree: serde_json::json!({"rootNodeId": "page_1"}),
@@ -142,6 +142,7 @@ mod tests {
assert_eq!(body.block_document, json!(null));
assert_eq!(body.projection_source, "");
assert_eq!(body.file_version, json!(null));
assert_eq!(body.attachment_refs, json!(null));
}
}
@@ -159,6 +160,8 @@ pub struct PageBody {
pub block_projection_version: u32,
#[serde(default)]
pub projection_source: String,
#[serde(default)]
pub attachment_refs: Value,
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]