Class SchemaHintsDiscriminator

Namespace
Kuestenlogik.Bowire.Semantics
Assembly
Kuestenlogik.Bowire.dll

Discriminator declaration as serialised in Discriminator. Exactly one of WirePath / JsonPath / Oneof is expected to be non-null per entry; readers tolerate multiple fields and pick the first non-null in that order.

public sealed class SchemaHintsDiscriminator
Inheritance
SchemaHintsDiscriminator
Inherited Members

Constructors

SchemaHintsDiscriminator()

public SchemaHintsDiscriminator()

Properties

JsonPath

JSONPath evaluated after decode (e.g. "$.type").

[JsonPropertyName("jsonPath")]
public string? JsonPath { get; set; }

Property Value

string

Oneof

Protobuf oneof group name.

[JsonPropertyName("oneof")]
public string? Oneof { get; set; }

Property Value

string

Registry

Optional type-registry hint identifying the named enum / table that maps discriminator values to message types (e.g. "dis.PduType"). The framework does not interpret this field in Phase 1 — it is round-tripped through the file untouched so plugin-side detectors can consult it later.

[JsonPropertyName("registry")]
public string? Registry { get; set; }

Property Value

string

WirePath

Wire-bytes offset expression (e.g. "byte[1]").

[JsonPropertyName("wirePath")]
public string? WirePath { get; set; }

Property Value

string