MCPcopy Create free account
hub / github.com/LaunchPlatform/beanhub-cli / errors_to_tree

Function errors_to_tree

beanhub_cli/forms/validator.py:50–54  ·  view source on GitHub ↗
(errors: list[dict])

Source from the content-addressed store, hash-verified

48
49
50def errors_to_tree(errors: list[dict]) -> dict:
51 tree = {}
52 for error in errors:
53 _errors_to_tree(tree, loc=merge_index_loc(error["loc"]), error=error)
54 return tree
55
56
57def _enrich_tree(rich_tree: Tree, tree: dict):

Callers 1

_validate_formFunction · 0.85

Calls 2

_errors_to_treeFunction · 0.85
merge_index_locFunction · 0.85

Tested by

no test coverage detected