(baseUrl: string)
| 26 | |
| 27 | /** OpenAPI 3 spec with a single GET /greet operation. */ |
| 28 | const greetSpec = (baseUrl: string): string => |
| 29 | JSON.stringify({ |
| 30 | openapi: "3.0.3", |
| 31 | info: { title: "Greet API", version: "1.0.0" }, |
| 32 | servers: [{ url: baseUrl }], |
| 33 | paths: { |
| 34 | "/greet": { |
| 35 | get: { |
| 36 | operationId: "getGreeting", |
| 37 | summary: "Return a greeting message", |
| 38 | responses: { "200": { description: "A greeting" } }, |
| 39 | }, |
| 40 | }, |
| 41 | }, |
| 42 | }); |
| 43 | |
| 44 | scenario( |
| 45 | "OpenAPI · registering a spec exposes its operations as tools", |
no outgoing calls
no test coverage detected