aeat.domain.calculations.registry._validate_references module

Referential-integrity validation for registry snapshots.

Walks all 21 typed-ID reference fields across a RegistrySnapshot and raises RegistryValidationError for every dangling reference found in the ModeloRevision.

check_all_id_references(snapshot)[source]

Run the public referential-integrity gate for a RegistrySnapshot.

Parameters:

snapshot (RegistrySnapshot) – The RegistrySnapshot whose revision references are checked.

Return type:

None