Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.2 · function

validateTopologyIdentityContract

Source

Check whether what a topology plugin discovered satisfies the identity contract. Returns arrays of violating node/port ids. Both arrays empty → contract met.

validateTopologyIdentityContract(source: SourceNetwork): TopologyIdentityContractResult

Parameters

Parameter Type Description Default
source SourceNetwork What a TopologyCapable plugin's `fetchTopology()` returned (or an equivalent in-process fixture). —

Returns

TopologyIdentityContractResult

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