generated from coulomb/repo-seed
Tune graph layout affinities
This commit is contained in:
@@ -271,6 +271,8 @@ def _export_attributes(declaration: Declaration) -> dict[str, Any]:
|
||||
if declaration.kind == "ServiceDeclaration":
|
||||
return {
|
||||
**base,
|
||||
"service_type": spec.get("service_type", ""),
|
||||
"environments": list(spec.get("environments", [])),
|
||||
"provides_capabilities": list(spec.get("provides_capabilities", [])),
|
||||
"exposes_interfaces": list(spec.get("exposes_interfaces", [])),
|
||||
}
|
||||
@@ -290,6 +292,8 @@ def _export_attributes(declaration: Declaration) -> dict[str, Any]:
|
||||
"capability_ids": list(spec.get("capability_ids", [])),
|
||||
"version": spec.get("version", ""),
|
||||
"auth": spec.get("auth", ""),
|
||||
"endpoint": spec.get("endpoint", {}),
|
||||
"environments": list(spec.get("environments", [])),
|
||||
}
|
||||
if declaration.kind == "DependencyDeclaration":
|
||||
requires = spec.get("requires", {})
|
||||
|
||||
Reference in New Issue
Block a user