mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 19:13:14 -04:00
[Security Solution] Auto-bundle Lists API OpenAPI specs (#188407)
**Addresses**: https://github.com/elastic/kibana/issues/184428 ## Summary This PR adds scripts for automatic bundling of Lists API OpenAPI specs as a part of PR pipeline. Corresponding resulting bundles are automatically committed in the Lists common package `kbn-securitysolution-lists-common` in the `docs/openapi/ess/` and `docs/openapi/serverless` folders (similar to https://github.com/elastic/kibana/pull/186384).
This commit is contained in:
parent
9d4c061247
commit
c76f68e55c
10 changed files with 3102 additions and 5 deletions
|
@ -17,14 +17,14 @@ const ROOT = resolve(__dirname, '..');
|
|||
await generate({
|
||||
title: 'OpenAPI Lists API Schemas',
|
||||
rootDir: ROOT,
|
||||
sourceGlob: './**/*.schema.yaml',
|
||||
sourceGlob: './api/**/*.schema.yaml',
|
||||
templateName: 'zod_operation_schema',
|
||||
});
|
||||
|
||||
await generate({
|
||||
title: 'Lists API client for tests',
|
||||
rootDir: ROOT,
|
||||
sourceGlob: './**/*.schema.yaml',
|
||||
sourceGlob: './api/**/*.schema.yaml',
|
||||
templateName: 'api_client_supertest',
|
||||
skipLinting: true,
|
||||
bundle: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue