graflo.architecture.contract.ingestion.steps.parse¶
Parsing and validation of actor configuration.
Attributes¶
Classes¶
Functions:¶
canonical_actor_step(step)
¶
One spelling for a pipeline step, whatever spelling it was authored in.
A step accepts several equivalent spellings -- {"vertex": v} with or
without an explicit type, {"edge": {...}} or its flat body,
from/to or source/target, a descend with apply or
pipeline. Stored as authored, two manifests meaning the same thing
compare and hash differently. This validates the step into its actor model
and renders the minimal canonical dict with the discriminator made explicit.
Lists inside a step keep their order: whether any of them is a set has not been established, and preserving is the safe direction for a content hash.
A step that does not validate on its own is returned unchanged, so a canonical form never fails where the raw one would have been accepted.
Source code in graflo/architecture/contract/ingestion/steps/parse.py
parse_root_config(*args, **kwargs)
¶
Parse root input into a single ActorConfig (single step or descend pipeline).
Source code in graflo/architecture/contract/ingestion/steps/parse.py
validate_actor_step(data)
¶
Validate a normalized step dict as ActorConfig (discriminated union).