ValidationResult

@Serializable
data class ValidationResult(val errors: List<FieldError> = emptyList(), val warnings: List<FieldError> = emptyList())(source)

Aggregated pre-run validation result.

A configuration is valid when errors is empty. warnings do not block execution, but should be surfaced by a GUI because they describe values that will be ignored, clamped, or otherwise deserve attention.

Constructors

Link copied to clipboard
constructor(errors: List<FieldError> = emptyList(), warnings: List<FieldError> = emptyList())

Properties

Link copied to clipboard

All validation messages, preserving errors before warnings.

Link copied to clipboard
Link copied to clipboard

True when the configuration has no blocking validation errors.

Link copied to clipboard

Functions

Link copied to clipboard
operator fun plus(other: ValidationResult): ValidationResult

Combines two validation results without changing issue order within each severity.