enhance(cli): Add validate command for local graph(s)

Improves :errors of invalid errors to be more user friendly.
Also enable closed-value validation optionally as it is useful
to have higher data quality for non RTC graphs
This commit is contained in:
Gabriel Horner
2025-11-19 17:51:45 -05:00
parent 4dce582d33
commit 79e75060d6
9 changed files with 101 additions and 13 deletions

View File

@@ -27,7 +27,10 @@
(pprint/pprint ent-errors)
humanize
(pprint/pprint (map #(-> (dissoc % :errors-by-type)
(update :errors (fn [errs] (me/humanize {:errors errs}))))
(update :errors (fn [errs]
(->> (me/humanize {:errors errs})
vals
(apply merge-with into)))))
ent-errors))
:else
(pprint/pprint (map :entity ent-errors))))