(data: Any)
| 117 | |
| 118 | |
| 119 | def check_workflow_structure(data: Any) -> List[str]: |
| 120 | errors: List[str] = [] |
| 121 | if not isinstance(data, dict) or "graph" not in data: |
| 122 | return ["<root>.graph is required"] |
| 123 | graph = data["graph"] |
| 124 | if not isinstance(graph, dict): |
| 125 | return ["<root>.graph must be object"] |
| 126 | |
| 127 | _analyze_graph(graph, "graph", errors) |
| 128 | return errors |
| 129 | |
| 130 | |
| 131 | def main(): |
no test coverage detected