Validation¶
Core Validation Interfaces.
This module defines the protocols for system validation. Plugins can implement Validator to participate in the bootstrap process without depending directly on the structum-bootstrap package.
- class structum.validation.ValidationContext(*args, **kwargs)[source]¶
Bases:
ProtocolContext object passed to validators to collect results.
- class structum.validation.Validator(*args, **kwargs)[source]¶
Bases:
ProtocolProtocol for any component that can perform validation.
- validate(context: ValidationContext) None[source]¶
Execute validation logic and update the context.
- Parameters:¶
- context: ValidationContext¶
The bootstrap context to record success/failure/warnings.