feat: add render-md json input flow

This commit is contained in:
2026-04-08 22:50:30 +08:00
parent 75e3239a16
commit 2b9c50af2e
8 changed files with 528 additions and 8 deletions
+9
View File
@@ -0,0 +1,9 @@
use crate::model::PrReviewDocument;
pub fn render_json(doc: &PrReviewDocument) -> anyhow::Result<String> {
Ok(serde_json::to_string_pretty(doc)?)
}
pub fn parse_json(input: &str) -> anyhow::Result<PrReviewDocument> {
Ok(serde_json::from_str(input)?)
}