()
| 65 | } |
| 66 | |
| 67 | async renderBodyParameterDescriptions() { |
| 68 | if (!this.#webhook.requestBody) return [] |
| 69 | const schema = get(this.#webhook, `requestBody.content.['application/json'].schema`, {}) |
| 70 | this.bodyParameters = isPlainObject(schema) ? await getBodyParams(schema, true, this.title) : [] |
| 71 | |
| 72 | // Removes the children of the common properties |
| 73 | this.bodyParameters.forEach((param) => { |
| 74 | if (NO_CHILD_PROPERTIES.includes(param.name)) { |
| 75 | param.childParamsGroups = [] |
| 76 | } |
| 77 | }) |
| 78 | } |
| 79 | } |
no test coverage detected