(schemas)
| 156 | } |
| 157 | |
| 158 | async function getDereferencedFiles(schemas) { |
| 159 | const schemaData = {} |
| 160 | for (const filename of schemas) { |
| 161 | const file = path.join(REST_DEREFERENCED_DIR, `${filename}.deref.json`) |
| 162 | const schema = JSON.parse(await readFile(file)) |
| 163 | schemaData[filename] = schema |
| 164 | } |
| 165 | return schemaData |
| 166 | } |
| 167 | |
| 168 | async function createStaticWebhookFiles(webhookSchemas) { |
| 169 | if (!Object.keys(webhookSchemas).length) { |
no outgoing calls
no test coverage detected