()
| 80 | } |
| 81 | |
| 82 | async process() { |
| 83 | await Promise.all([ |
| 84 | this.renderDescription(), |
| 85 | this.renderStatusCodes(), |
| 86 | this.renderParameterDescriptions(), |
| 87 | this.renderBodyParameterDescriptions(), |
| 88 | this.renderExampleResponseDescriptions(), |
| 89 | this.renderPreviewNotes(), |
| 90 | ]) |
| 91 | |
| 92 | const ajv = new Ajv() |
| 93 | const valid = ajv.validate(operationSchema, this) |
| 94 | if (!valid) { |
| 95 | console.error(JSON.stringify(ajv.errors, null, 2)) |
| 96 | throw new Error('Invalid OpenAPI operation found') |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | getExternalDocs() { |
| 101 | return this.#operation.externalDocs |
nothing calls this directly
no test coverage detected