Class FuzzFieldSpec

Namespace
Kuestenlogik.Bowire.Security
Assembly
Kuestenlogik.Bowire.dll

What the engine knows about a field, extracted from the schema.

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

Constructors

FuzzFieldSpec(FuzzFieldKind, bool, IReadOnlyList<string>?, string?)

What the engine knows about a field, extracted from the schema.

public FuzzFieldSpec(FuzzFieldKind Kind, bool Required = false, IReadOnlyList<string>? EnumValues = null, string? Format = null)

Parameters

Kind FuzzFieldKind

The field's declared type.

Required bool

True when the field is required / non-optional.

EnumValues IReadOnlyList<string>

The allowed values when Kind is Enum.

Format string

Optional format hint (e.g. email, uuid, date) that adds a format-violation mutation.

Properties

EnumValues

The allowed values when Kind is Enum.

public IReadOnlyList<string>? EnumValues { get; init; }

Property Value

IReadOnlyList<string>

Format

Optional format hint (e.g. email, uuid, date) that adds a format-violation mutation.

public string? Format { get; init; }

Property Value

string

Kind

The field's declared type.

public FuzzFieldKind Kind { get; init; }

Property Value

FuzzFieldKind

Required

True when the field is required / non-optional.

public bool Required { get; init; }

Property Value

bool

Methods

Deconstruct(out FuzzFieldKind, out bool, out IReadOnlyList<string>?, out string?)

public void Deconstruct(out FuzzFieldKind Kind, out bool Required, out IReadOnlyList<string>? EnumValues, out string? Format)

Parameters

Kind FuzzFieldKind
Required bool
EnumValues IReadOnlyList<string>
Format string

Equals(FuzzFieldSpec?)

public bool Equals(FuzzFieldSpec? other)

Parameters

other FuzzFieldSpec

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 ==(FuzzFieldSpec?, FuzzFieldSpec?)

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

Parameters

left FuzzFieldSpec
right FuzzFieldSpec

Returns

bool

operator !=(FuzzFieldSpec?, FuzzFieldSpec?)

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

Parameters

left FuzzFieldSpec
right FuzzFieldSpec

Returns

bool