Constructor ValidationResult
Namespace: Belay.Core.Security
Assembly: Belay.Core.dll
ValidationResult(bool, string?, SecurityRiskLevel, IReadOnlyList<string>?)
Initializes a new instance of the struct.
csharp
public ValidationResult(bool isValid, string? failureReason = null, InputValidator.SecurityRiskLevel riskLevel = SecurityRiskLevel.Low, IReadOnlyList<string>? securityConcerns = null)
Parameters
isValid
bool
Whether the validation passed.
failureReason
string?
The reason for failure, if any.
riskLevel
InputValidator.SecurityRiskLevel
The assessed security risk level.
securityConcerns
IReadOnlyList<string>?
List of security concerns found.
ValidationResult(bool, string?, SecurityRiskLevel, IReadOnlyList<string>?)
Initializes a new instance of the struct.
csharp
public ValidationResult(bool isValid, string? failureReason = null, InputValidator.SecurityRiskLevel riskLevel = SecurityRiskLevel.Low, IReadOnlyList<string>? securityConcerns = null)
Parameters
isValid
bool
Whether the validation passed.
failureReason
string?
The reason for failure, if any.
riskLevel
InputValidator.SecurityRiskLevel
The assessed security risk level.
securityConcerns
IReadOnlyList<string>?
List of security concerns found.