graflo.architecture.schema.identity_uuid¶
UUID identity helpers for assigned mode and UUID-typed natural keys.
ensure_assigned_uuid(doc, field)
¶
Fill empty field with uuid4(); validate non-empty values in place.
Never overwrites a present valid UUID.
Source code in graflo/architecture/schema/identity_uuid.py
ensure_assigned_uuids_in_acc_vertex(acc_vertex, vertex_config)
¶
Mint/validate assigned UUIDs on acc_vertex docs before edge assembly.
acc_vertex maps vertex name -> location -> list of VertexRep (or
objects with a .vertex dict attribute).
Source code in graflo/architecture/schema/identity_uuid.py
ensure_assigned_uuids_on_docs(data, *, preferred_field, arango_key_mirror=False)
¶
Idempotent assigned-UUID ensure for a flat doc list (writer safety net).
Source code in graflo/architecture/schema/identity_uuid.py
validate_uuid_typed_identity_fields(doc, vertex)
¶
Validate present values on UUID-typed identity fields; do not invent.
Source code in graflo/architecture/schema/identity_uuid.py
validate_uuid_value(value, *, context='UUID')
¶
Return a normalized UUID string; raise if value is non-empty but invalid.