feat: Added graph validation

This commit is contained in:
2026-05-13 10:18:51 -06:00
parent 76861508c9
commit cf666eb2c6
3 changed files with 644 additions and 6 deletions
+2 -6
View File
@@ -209,12 +209,8 @@ fn value_to_string(value: &Value) -> String {
Value::Number(n) => n.to_string(),
Value::Bool(b) => b.to_string(),
Value::Null => "null".to_string(),
Value::Array(_) => {
serde_json::to_string(value).unwrap_or_else(|_| String::from("[]"))
}
Value::Object(_) => {
serde_json::to_string(value).unwrap_or_else(|_| String::from("{}"))
}
Value::Array(_) => serde_json::to_string(value).unwrap_or_else(|_| String::from("[]")),
Value::Object(_) => serde_json::to_string(value).unwrap_or_else(|_| String::from("{}")),
}
}