Shumoku Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.0 · function

validateTopologyIdentityContract

Source

Check whether `graph` satisfies the topology identity contract. Returns arrays of violating node/port ids. Both arrays empty → contract met.

validateTopologyIdentityContract(graph: NetworkGraph): TopologyIdentityContractResult

Parameters

Parameter Type Description Default
graph NetworkGraph A NetworkGraph returned by a TopologyCapable plugin's `fetchTopology()` (or an equivalent in-process fixture).

Returns

TopologyIdentityContractResult

libs/@shumoku/core/src/plugin-kit/topology-identity-contract.ts:50