Admit Scenario layout through the ordinary source parser inventory
This commit is contained in:
@@ -52,7 +52,13 @@ pub(crate) fn parser_fields(context: Context) -> Map<String, Value> {
|
||||
_ => &["source", "target"],
|
||||
}
|
||||
}
|
||||
Context::Diagram => &[],
|
||||
Context::Diagram => {
|
||||
// Admit the optional payload without restoring a synthetic null in
|
||||
// CompleteForEdit: absence there distinguishes a real layout clear
|
||||
// from an unrelated edit beside an authored explicit `layout none`.
|
||||
fields.insert("layout".into(), Value::Null);
|
||||
&[]
|
||||
}
|
||||
Context::Node => &["element"],
|
||||
Context::Artifact => &["owner"],
|
||||
Context::Trace => &["oa", "sa"],
|
||||
|
||||
Reference in New Issue
Block a user