mellea.plugins.hooks.validation
Validation hook payloads.
Classes
CLASS ValidationPreCheckPayload
Payload for validation_pre_check — before requirement validation.
Attributes:
validation_id: UUID correlating the pre/post hooks for a single requirement-validation batch.requirements: List ofRequirementinstances to validate (writable).target: TheCBlockbeing validated, orNonewhen validating the full context.context: TheContextused for validation.model_options: Dict of model options for backend-based validators (writable).
CLASS ValidationPostCheckPayload
Payload for validation_post_check — after validation completes.
Fires on every completing path: a normal check (any pass/fail mix) and an
unhandled exception. On the exception path results and the counts are empty.
Attributes:
validation_id: UUID correlating with the matchingvalidation_pre_check.requirements: List ofRequirementinstances that were evaluated.results: List ofValidationResultinstances (writable).all_validations_passed:Truewhen every requirement passed (writable).passed_count: Number of requirements that passed.failed_count: Number of requirements that failed.exception: The exception raised during validation, orNonewhen it completed.