# validateTopologyIdentityContract

Canonical: https://docs.shumoku.dev/ja/library/api/validateTopologyIdentityContract
Language: ja

@shumoku/core · 0.4.0 · function

# validateTopologyIdentityContract

[ソース](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/plugin-kit/topology-identity-contract.ts#L50)

APIの説明は英語のcanonical 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
```

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `graph` | `NetworkGraph` | A NetworkGraph returned by a TopologyCapable plugin's \`fetchTopology()\` (or an equivalent in-process fixture). | `—` |

## 戻り値

```
TopologyIdentityContractResult
```

[`libs/@shumoku/core/src/plugin-kit/topology-identity-contract.ts:50`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/plugin-kit/topology-identity-contract.ts#L50)
