Class FlowSnapshotConfig

Namespace
Kuestenlogik.Bowire.Flows.Expectations
Assembly
Kuestenlogik.Bowire.Flows.dll

Snapshot ("golden baseline") configuration on a Flow step — #171. First run captures the response body into a snapshot file; subsequent runs diff actual against the baseline and fail on drift. Complements the structural FlowExpectation checks: expectations say "these fields must hold", the snapshot says "nothing ELSE changed either".

public sealed class FlowSnapshotConfig
Inheritance
FlowSnapshotConfig
Inherited Members

Remarks

Wire shape on the step:

{ "snapshot": { "mode": "exact", "ignore": ["$.updatedAt", "$.items.*.id"] } }

Constructors

FlowSnapshotConfig()

public FlowSnapshotConfig()

Properties

Enabled

Toggle without deleting the config block. Default true — the presence of a snapshot object opts the step in.

[JsonPropertyName("enabled")]
public bool Enabled { get; set; }

Property Value

bool

Ignore

Dotted paths whose VALUES are exempt from comparison (timestamps, UUIDs, request ids). Shape still holds — a marked field must still exist with the same JSON kind. * matches any one segment (array index or object key). Optional $. prefix.

[JsonPropertyName("ignore")]
public List<string> Ignore { get; set; }

Property Value

List<string>

Mode

Comparison strictness.

[JsonPropertyName("mode")]
public FlowSnapshotMode Mode { get; set; }

Property Value

FlowSnapshotMode