Preserve editable routes across source projects and REST

This commit is contained in:
2026-09-05 20:19:38 +03:00
parent 4e5a88dc4d
commit a7c6f9678c
8 changed files with 718 additions and 6 deletions
+6 -2
View File
@@ -811,6 +811,10 @@ fn original_v2_text_and_json_preserve_identity_and_mixed_scenarios_after_extensi
}
}
}
for diagram in retained["diagrams"].as_object_mut().unwrap().values_mut() {
assert_eq!(diagram["routes"], serde_json::json!([]));
diagram.as_object_mut().unwrap().remove("routes");
}
assert_eq!(
retained, original,
"every original V2 field survives; only explicit new compatibility defaults are added"
@@ -825,8 +829,8 @@ fn original_v2_text_and_json_preserve_identity_and_mixed_scenarios_after_extensi
original["relations"].as_object().unwrap().len()
);
assert_eq!(
serde_json::to_value(&from_json.diagrams).unwrap(),
original["diagrams"]
from_json.diagrams.len(),
original["diagrams"].as_object().unwrap().len()
);
assert_eq!(
serde_json::to_value(&from_json.traces).unwrap(),