Skip to content

Struct InputValidator.ValidationResult

Namespace: Belay.Core.Security
Assembly: Belay.Core.dll

Validation result containing both the validation outcome and security details.

csharp
public readonly struct InputValidator.ValidationResult

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

ValidationResult(bool, string?, SecurityRiskLevel, IReadOnlyList<string>?)

Initializes a new instance of the struct.

ValidationResult(bool, string?, SecurityRiskLevel, IReadOnlyList<string>?)

Initializes a new instance of the struct.

Properties

FailureReason

Gets the reason for validation failure, or null if validation passed.

FailureReason

Gets the reason for validation failure, or null if validation passed.

IsValid

Gets a value indicating whether the input passed validation.

IsValid

Gets a value indicating whether the input passed validation.

RiskLevel

Gets the security risk level associated with the input.

RiskLevel

Gets the security risk level associated with the input.

SecurityConcerns

Gets additional details about security concerns found in the input.

SecurityConcerns

Gets additional details about security concerns found in the input.

Released under the Apache License 2.0.