(tool: ToolListItem)
| 64 | } |
| 65 | |
| 66 | function toFlatJsonTool(tool: ToolListItem): JsonToolWithWorkflow { |
| 67 | const base = { |
| 68 | workflow: tool.workflow, |
| 69 | ...toJsonToolBase(tool), |
| 70 | }; |
| 71 | |
| 72 | return withCanonicalWorkflow(tool, base); |
| 73 | } |
| 74 | |
| 75 | function toGroupedJsonTool(tool: ToolListItem): JsonTool { |
| 76 | return withCanonicalWorkflow(tool, toJsonToolBase(tool)); |
no test coverage detected