[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:
Maxim Palenov 2024-07-18 13:33:53 +02:00 committed by GitHub
parent 9d4c061247
commit c76f68e55c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 3102 additions and 5 deletions

View file

@ -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: {