aeat.domain.calculations.registry._formula_text_inputs module¶
Text-input validation for registry formula evaluation.
Text casilla inputs are canonicalised into
CasillaId keys before
domain.calculations.registry._formula_runtime.calculate_registry_snapshot()
checks that they target text-capable
CasillaDefinition rows.
See also
domain.calculations.registry._formula_runtimeRuntime caller that consumes the validated text input mapping.
domain.calculations.registry._formula_runtime_opsNumeric input companion that validates decimal casilla inputs.
domain.calculations.registry._schemaRegistry schema layer declaring casilla identifiers and data types.
- validated_text_input_casilla_ids(text_inputs)[source]¶
Canonicalise raw text input keys and strip operator-supplied strings.
Raw mapping keys become validated
CasillaIdvalues; values must be non-empty strings after whitespace trimming so text leaves enter the formula runtime in canonical form.
- validate_text_input_targets(text_inputs, *, casillas_by_id)[source]¶
Ensure text inputs reference declared text casillas.
The runtime passes the revision’s
CasillaDefinitionmap so callers cannot supply unknown casillas or route text into numeric registry targets.- Return type:
- Parameters:
casillas_by_id (Mapping[CasillaId, CasillaDefinition])