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_runtime

Runtime caller that consumes the validated text input mapping.

domain.calculations.registry._formula_runtime_ops

Numeric input companion that validates decimal casilla inputs.

domain.calculations.registry._schema

Registry 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 CasillaId values; values must be non-empty strings after whitespace trimming so text leaves enter the formula runtime in canonical form.

Return type:

dict[TypeAliasType, str]

Parameters:

text_inputs (Mapping)

validate_text_input_targets(text_inputs, *, casillas_by_id)[source]

Ensure text inputs reference declared text casillas.

The runtime passes the revision’s CasillaDefinition map so callers cannot supply unknown casillas or route text into numeric registry targets.

Return type:

None

Parameters: