Snapshot

class Snapshot(contracts: List<Contract> = emptyList(), val config: SnapshotConfig = SnapshotConfig())

The canonical, comparable representation of a JSON wire contract: the set of serializable contracts plus the relevant config.

contracts are normalized to sorted order (by serial name) so that equality and the canonical text form are independent of extraction order. This is the one swappable artifact the whole tool hangs off — extraction produces it, the differ consumes two of them, and it never knows where it came from (design §3).

Constructors

Link copied to clipboard
constructor(contracts: List<Contract> = emptyList(), config: SnapshotConfig = SnapshotConfig())

Properties

Link copied to clipboard
Link copied to clipboard

Contracts, sorted by serial name, then Contract.base (unqualified first).

Functions

Link copied to clipboard

Partitions this snapshot's contracts by scope into checked vs excluded.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String