(schemas)
| 14 | const REST_DEREFERENCED_DIR = 'src/rest/data/dereferenced' |
| 15 | |
| 16 | export async function decorate(schemas) { |
| 17 | console.log('\n🎄 Decorating the OpenAPI schema files in src/rest/data/dereferenced.\n') |
| 18 | const { restSchemas, webhookSchemas } = await getOpenApiSchemaFiles(schemas) |
| 19 | const webhookOperations = await getWebhookOperations(webhookSchemas) |
| 20 | await createStaticWebhookFiles(webhookOperations) |
| 21 | const restOperations = await getRestOperations(restSchemas) |
| 22 | await createStaticRestFiles(restOperations) |
| 23 | } |
| 24 | |
| 25 | async function getRestOperations(restSchemas) { |
| 26 | console.log('\n⏭️ Start generating static REST files\n') |
no test coverage detected