( openApiDoc: OpenAPIDocument, path: string, method: string )
| 72 | } |
| 73 | |
| 74 | function getOperation( |
| 75 | openApiDoc: OpenAPIDocument, |
| 76 | path: string, |
| 77 | method: string |
| 78 | ): OpenApiOperation | undefined { |
| 79 | return openApiDoc.paths[path]?.[method]; |
| 80 | } |
| 81 | |
| 82 | describe("OpenAPI 规范验证", () => { |
| 83 | let openApiDoc: OpenAPIDocument; |
no outgoing calls
no test coverage detected