Skip to main content

Module element_scopes

Module element_scopes 

Source
Expand description

Which group instance each BO4E entity element becomes.

Condition-aware BO4E validation evaluates AHB conditions against the tree the JSON reverse-maps to. “In dieser SG8” needs the SG8 an element is, and the JSON does not say: the reverse merges definitions and orders repetitions by MIG variant, so array index and repetition index differ.

Functions§

entity_element_scopes
The group instance each entity element of json becomes in tree (the reverse mapping of json by engine).
nested_element_scopes
The group instance each element of a nested list becomes: a zuordnungen element its SG10, a mengen element its SG9 — so “im selben CCI” ([438]) reads that element’s CCI, not any in the message.

Type Aliases§

ElementKey
An element of the BO4E JSON: its entity key, and its index when the entity is an array (None for a single object).
InstancePath
A group instance, by its repetition at every level from the root.
NestedKey
A nested-list element: its entity element, and its position in the lists below it ([("zuordnungen", 3)]).