ConfigValidator class final

Validates configuration at boot (BLUEPRINT_V2 §5.3 step 3, §9.2).

Errors abort the boot with a ConfigException listing every problem; warnings are logged. Applications can add their own checks through ApplicationBuilder.withConfigCheck.

Constructors

ConfigValidator({List<ConfigCheck> extraChecks = const []})

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
validate(Env env, ConfigRepository config) → List<ConfigIssue>
Runs every check and returns all issues (errors first).
validateOrThrow(Env env, ConfigRepository config) → List<ConfigIssue>
Runs validate and throws a ConfigException when any error exists.

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

defaultChecks → List<ConfigCheck>
The framework's built-in checks.
final