aeat.domain.calculations.registry._validate_revision_sections module¶
Per-revision registry section validation dispatch.
Orchestrates all per-section validators for a single
ModeloRevision within its
ModeloDefinition, collecting every
failure into a flat list returned to the registry-level validator.
The dispatcher builds a
RevisionValidationContext
once and reuses it across record, surface, dependency, algorithm, completeness,
and closure validators. Legal/source refs are checked through the shared
EvidenceValidator.
See also
aeat.domain.calculations.registry.RegistryValidatorRegistry-level validator that calls
validate_revision_definition().aeat.domain.calculations.registry._validate_record_sectionsRecord-section validators dispatched from this module.
aeat.domain.calculations.registry._validate_revision_closureClosure validators dispatched after section-level checks.
- validate_revision_definition(modelo, revision, *, legal_refs, source_refs, evidence, justificante_corpus_root)[source]¶
Return all registry validation failures for one modelo revision.
The
ModeloDefinitionsupplies the modelo scope and theModeloRevisionsupplies the revision payload. The function applies revision-level reference/evidence gates, builds the validation context, dispatches all section validators, then runs closure validators before returning the accumulated failures.- Return type:
- Parameters:
modelo (ModeloDefinition)
revision (ModeloRevision)
legal_refs (Mapping[str, LegalReference])
source_refs (Mapping[str, SourceReference])
evidence (EvidenceValidator)
justificante_corpus_root (Path | None)