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
KindFuzzFieldKindThe field's declared type.
RequiredboolTrue when the field is required / non-optional.
EnumValuesIReadOnlyList<string>FormatstringOptional format hint (e.g.
email,uuid,date) that adds a format-violation mutation.
Properties
EnumValues
public IReadOnlyList<string>? EnumValues { get; init; }
Property Value
Format
Optional format hint (e.g. email, uuid, date) that adds a format-violation mutation.
public string? Format { get; init; }
Property Value
Kind
The field's declared type.
public FuzzFieldKind Kind { get; init; }
Property Value
Required
True when the field is required / non-optional.
public bool Required { get; init; }
Property Value
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
KindFuzzFieldKindRequiredboolEnumValuesIReadOnlyList<string>Formatstring
Equals(FuzzFieldSpec?)
public bool Equals(FuzzFieldSpec? other)
Parameters
otherFuzzFieldSpec
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(FuzzFieldSpec?, FuzzFieldSpec?)
public static bool operator ==(FuzzFieldSpec? left, FuzzFieldSpec? right)
Parameters
leftFuzzFieldSpecrightFuzzFieldSpec
Returns
operator !=(FuzzFieldSpec?, FuzzFieldSpec?)
public static bool operator !=(FuzzFieldSpec? left, FuzzFieldSpec? right)
Parameters
leftFuzzFieldSpecrightFuzzFieldSpec