fix local markdown attachment regressions
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user