Class SchemaMutation

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

One targeted invalid input the engine produced for a field.

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

Constructors

SchemaMutation(string, string, string)

One targeted invalid input the engine produced for a field.

public SchemaMutation(string Label, string ValueJson, string Expectation)

Parameters

Label string

Short human-readable name of the attack (e.g. int32 overflow).

ValueJson string

The raw JSON token to inject in place of the field's value — may be deliberately invalid JSON (e.g. NaN) to probe the parser.

Expectation string

What a correctly-validating server should do (used as the per-mutation report's expected-behaviour column).

Properties

Expectation

What a correctly-validating server should do (used as the per-mutation report's expected-behaviour column).

public string Expectation { get; init; }

Property Value

string

Label

Short human-readable name of the attack (e.g. int32 overflow).

public string Label { get; init; }

Property Value

string

ValueJson

The raw JSON token to inject in place of the field's value — may be deliberately invalid JSON (e.g. NaN) to probe the parser.

public string ValueJson { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string, out string)

public void Deconstruct(out string Label, out string ValueJson, out string Expectation)

Parameters

Label string
ValueJson string
Expectation string

Equals(SchemaMutation?)

public bool Equals(SchemaMutation? other)

Parameters

other SchemaMutation

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

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

Parameters

left SchemaMutation
right SchemaMutation

Returns

bool

operator !=(SchemaMutation?, SchemaMutation?)

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

Parameters

left SchemaMutation
right SchemaMutation

Returns

bool