Class OpenApiRecordingBuilder

Namespace
Kuestenlogik.Bowire.Protocol.Rest.OpenApi2
Assembly
Kuestenlogik.Bowire.Protocol.Rest.OpenApi2.dll

Phase 3d: turns a parsed OpenAPI document into a synthetic BowireRecording so the standard mock pipeline (matcher + replayer + chaos + stateful mode) can replay the API without any captured traffic. Each operation becomes one step whose response body is generated by OpenApiSampleGenerator.

public static class OpenApiRecordingBuilder
Inheritance
OpenApiRecordingBuilder
Inherited Members

Methods

Build(OpenApiDocument, string)

Test-friendly overload — build a recording from an in-memory OpenApiDocument.

public static BowireRecording Build(OpenApiDocument doc, string sourceLabel)

Parameters

doc OpenApiDocument
sourceLabel string

Returns

BowireRecording

LoadAsync(string, CancellationToken)

Load an OpenAPI document from path and build a synthetic recording covering every operation. Throws InvalidDataException when the document is missing, malformed, or has no paths.

public static Task<BowireRecording> LoadAsync(string path, CancellationToken ct)

Parameters

path string
ct CancellationToken

Returns

Task<BowireRecording>