Class BowireOpenApiDiscoveryResult

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

Cross-version discovery result. Carries the parsed Bowire service model plus enough metadata for the REST plugin's invocation / recording / schema-cache paths to do their job without seeing the underlying OpenAPI document object.

public sealed record BowireOpenApiDiscoveryResult : IEquatable<BowireOpenApiDiscoveryResult>
Inheritance
BowireOpenApiDiscoveryResult
Implements
Inherited Members

Constructors

BowireOpenApiDiscoveryResult(string, string?, List<BowireServiceInfo>, string?)

Cross-version discovery result. Carries the parsed Bowire service model plus enough metadata for the REST plugin's invocation / recording / schema-cache paths to do their job without seeing the underlying OpenAPI document object.

public BowireOpenApiDiscoveryResult(string SourceUrl, string? ApiBaseUrl, List<BowireServiceInfo> Services, string? RawContent)

Parameters

SourceUrl string

URL or label the document was loaded from.

ApiBaseUrl string

First server URL declared in the document (with template variables expanded against their defaults), or null when the document doesn't declare one.

Services List<BowireServiceInfo>

Discovered Bowire services.

RawContent string

Verbatim document text — stamped into the workbench's source-schema cache so a downstream recording carries the original contract for the mock host to serve verbatim under /openapi.{json,yaml}.

Properties

ApiBaseUrl

First server URL declared in the document (with template variables expanded against their defaults), or null when the document doesn't declare one.

public string? ApiBaseUrl { get; init; }

Property Value

string

RawContent

Verbatim document text — stamped into the workbench's source-schema cache so a downstream recording carries the original contract for the mock host to serve verbatim under /openapi.{json,yaml}.

public string? RawContent { get; init; }

Property Value

string

Services

Discovered Bowire services.

public List<BowireServiceInfo> Services { get; init; }

Property Value

List<BowireServiceInfo>

SourceUrl

URL or label the document was loaded from.

public string SourceUrl { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string?, out List<BowireServiceInfo>, out string?)

public void Deconstruct(out string SourceUrl, out string? ApiBaseUrl, out List<BowireServiceInfo> Services, out string? RawContent)

Parameters

SourceUrl string
ApiBaseUrl string
Services List<BowireServiceInfo>
RawContent string

Equals(BowireOpenApiDiscoveryResult?)

public bool Equals(BowireOpenApiDiscoveryResult? other)

Parameters

other BowireOpenApiDiscoveryResult

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BowireOpenApiDiscoveryResult?, BowireOpenApiDiscoveryResult?)

public static bool operator ==(BowireOpenApiDiscoveryResult? left, BowireOpenApiDiscoveryResult? right)

Parameters

left BowireOpenApiDiscoveryResult
right BowireOpenApiDiscoveryResult

Returns

bool

operator !=(BowireOpenApiDiscoveryResult?, BowireOpenApiDiscoveryResult?)

public static bool operator !=(BowireOpenApiDiscoveryResult? left, BowireOpenApiDiscoveryResult? right)

Parameters

left BowireOpenApiDiscoveryResult
right BowireOpenApiDiscoveryResult

Returns

bool