ECO Validate
eco_validateValidate an ECO record by checking schema stamp, non-empty id and affected items, disposition, and effectivity with exactly one date, serial, or revision. Returns ok status and problems list to identify invalid fields.
Instructions
Validate an ECO (engineering change order) record (issue #142, C3) — the cheap front door. Checks the schema stamp, a non-empty id + affected item set, a present disposition, and an effectivity carrying exactly one of date|serial|revision.
eco: the ECO object.
Returns {ok, problems} — ok is True iff problems is empty.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eco | Yes |