(def: ToolDefinition)
| 207 | }); |
| 208 | |
| 209 | const descriptionFor = (def: ToolDefinition): string => { |
| 210 | const op = def.operation; |
| 211 | return Option.getOrElse(op.description, () => |
| 212 | Option.getOrElse(op.summary, () => `${op.method.toUpperCase()} ${op.pathTemplate}`), |
| 213 | ); |
| 214 | }; |
| 215 | |
| 216 | /** |
| 217 | * Copyable contract appended to the stored description of any tool whose |
no outgoing calls
no test coverage detected