[OpenAPI generator] add transformSchemaName config options#250857
Conversation
|
Pinging @elastic/kibana-cases (Team:Cases) |
⏳ Build in-progress, with failures
Failed CI StepsHistory
|
jaredburgettelastic
left a comment
There was a problem hiding this comment.
LGTM for Entity Analytics
rylnd
left a comment
There was a problem hiding this comment.
Whitespace-only changes for Detection Engine 😅 . LGTM!
nikitaindik
left a comment
There was a problem hiding this comment.
Checked the file changes and the generated output. It all looks good to me.
|
Starting backport for target branches: 8.19, 9.1, 9.2, 9.3 https://github.com/elastic/kibana/actions/runs/21678037428 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
2 similar comments
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…#250857) ## Summary If a yaml definition defines the type names in lowercase, like in the cases codebase, the generator would generate lowercase type/schema names. This is against our eslint rules. ```yaml in: query name: assignees description: > Filters the returned cases by assignees. Valid values are `none` or unique identifiers for the user profiles. These identifiers can be found by using the suggest user profile API. ``` would generate: ```ts export type assignees = z.infer<typeof assignees>; // <-- ESLint error export const assignees = z.array(...) ``` This PR adds a transformSchemaName option that allows to transform the schema names to `PascalCase`. That allows us to generate the correct schema names without having to touch the API documentation yaml files. This is the code that is generated with `transformSchemaName` set to `pascalCase`. ```ts export type Assignees = z.infer<typeof Assignees>; export const Assignees = z.array(...) ``` For now `transformSchemaName` only supports `pascalCase` but it can be extended in the future. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co> (cherry picked from commit cb8b556) # Conflicts: # x-pack/solutions/security/packages/kbn-securitysolution-exceptions-common/api/model/exception_list_common.gen.ts
…#250857) ## Summary If a yaml definition defines the type names in lowercase, like in the cases codebase, the generator would generate lowercase type/schema names. This is against our eslint rules. ```yaml in: query name: assignees description: > Filters the returned cases by assignees. Valid values are `none` or unique identifiers for the user profiles. These identifiers can be found by using the suggest user profile API. ``` would generate: ```ts export type assignees = z.infer<typeof assignees>; // <-- ESLint error export const assignees = z.array(...) ``` This PR adds a transformSchemaName option that allows to transform the schema names to `PascalCase`. That allows us to generate the correct schema names without having to touch the API documentation yaml files. This is the code that is generated with `transformSchemaName` set to `pascalCase`. ```ts export type Assignees = z.infer<typeof Assignees>; export const Assignees = z.array(...) ``` For now `transformSchemaName` only supports `pascalCase` but it can be extended in the future. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co> (cherry picked from commit cb8b556) # Conflicts: # x-pack/solutions/security/packages/kbn-securitysolution-exceptions-common/api/model/exception_list_common.gen.ts # x-pack/solutions/security/plugins/security_solution/common/api/endpoint/actions/file_download/file_download.gen.ts # x-pack/solutions/security/plugins/security_solution/common/api/endpoint/actions/file_info/file_info.gen.ts # x-pack/solutions/security/plugins/security_solution/common/api/endpoint/model/schema/common.gen.ts # x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/monitoring/monitoring_entity_source/monitoring_entity_source.gen.ts
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…#250857) ## Summary If a yaml definition defines the type names in lowercase, like in the cases codebase, the generator would generate lowercase type/schema names. This is against our eslint rules. ```yaml in: query name: assignees description: > Filters the returned cases by assignees. Valid values are `none` or unique identifiers for the user profiles. These identifiers can be found by using the suggest user profile API. ``` would generate: ```ts export type assignees = z.infer<typeof assignees>; // <-- ESLint error export const assignees = z.array(...) ``` This PR adds a transformSchemaName option that allows to transform the schema names to `PascalCase`. That allows us to generate the correct schema names without having to touch the API documentation yaml files. This is the code that is generated with `transformSchemaName` set to `pascalCase`. ```ts export type Assignees = z.infer<typeof Assignees>; export const Assignees = z.array(...) ``` For now `transformSchemaName` only supports `pascalCase` but it can be extended in the future. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co> (cherry picked from commit cb8b556) # Conflicts: # src/platform/packages/shared/kbn-openapi-generator/src/parser/get_generation_context.ts # x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/attack_discovery/common_attributes.gen.ts # x-pack/solutions/security/packages/kbn-securitysolution-exceptions-common/api/import_exceptions/import_exceptions.gen.ts # x-pack/solutions/security/packages/kbn-securitysolution-exceptions-common/api/model/exception_list_common.gen.ts # x-pack/solutions/security/packages/kbn-securitysolution-lists-common/api/import_list_items/import_list_items.gen.ts # x-pack/solutions/security/plugins/security_solution/common/api/endpoint/actions/file_download/file_download.gen.ts # x-pack/solutions/security/plugins/security_solution/common/api/endpoint/actions/file_info/file_info.gen.ts # x-pack/solutions/security/plugins/security_solution/common/api/endpoint/actions/response_actions/run_script/run_script.gen.ts # x-pack/solutions/security/plugins/security_solution/common/api/endpoint/model/schema/common.gen.ts # x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/monitoring/monitoring_entity_source/monitoring_entity_source.gen.ts
…250857) (#252467) # Backport This will backport the following commits from `main` to `9.3`: - [[OpenAPI generator] add `transformSchemaName` config options (#250857)](#250857) <!--- Backport version: 10.2.0 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Jan Monschke","email":"jan.monschke@elastic.co"},"sourceCommit":{"committedDate":"2026-02-04T15:44:35Z","message":"[OpenAPI generator] add `transformSchemaName` config options (#250857)\n\n## Summary\n\nIf a yaml definition defines the type names in lowercase, like in the\ncases codebase, the generator would generate lowercase type/schema\nnames. This is against our eslint rules.\n\n```yaml\nin: query\nname: assignees\ndescription: >\n Filters the returned cases by assignees.\n Valid values are `none` or unique identifiers for the user profiles.\n These identifiers can be found by using the suggest user profile API.\n```\n\nwould generate:\n\n```ts\nexport type assignees = z.infer<typeof assignees>; // <-- ESLint error\nexport const assignees = z.array(...)\n```\n\nThis PR adds a transformSchemaName option that allows to transform the\nschema names to `PascalCase`.\n\nThat allows us to generate the correct schema names without having to\ntouch the API documentation yaml files.\n\nThis is the code that is generated with `transformSchemaName` set to\n`pascalCase`.\n\n```ts\nexport type Assignees = z.infer<typeof Assignees>;\nexport const Assignees = z.array(...)\n```\n\nFor now `transformSchemaName` only supports `pascalCase` but it can be\nextended in the future.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>","sha":"cb8b5564dcd413630f3a21db9626e5d1d1bc585a","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport missing","backport:all-open","Team:Cases","v9.4.0"],"title":"[OpenAPI generator] add `transformSchemaName` config options","number":250857,"url":"https://github.com/elastic/kibana/pull/250857","mergeCommit":{"message":"[OpenAPI generator] add `transformSchemaName` config options (#250857)\n\n## Summary\n\nIf a yaml definition defines the type names in lowercase, like in the\ncases codebase, the generator would generate lowercase type/schema\nnames. This is against our eslint rules.\n\n```yaml\nin: query\nname: assignees\ndescription: >\n Filters the returned cases by assignees.\n Valid values are `none` or unique identifiers for the user profiles.\n These identifiers can be found by using the suggest user profile API.\n```\n\nwould generate:\n\n```ts\nexport type assignees = z.infer<typeof assignees>; // <-- ESLint error\nexport const assignees = z.array(...)\n```\n\nThis PR adds a transformSchemaName option that allows to transform the\nschema names to `PascalCase`.\n\nThat allows us to generate the correct schema names without having to\ntouch the API documentation yaml files.\n\nThis is the code that is generated with `transformSchemaName` set to\n`pascalCase`.\n\n```ts\nexport type Assignees = z.infer<typeof Assignees>;\nexport const Assignees = z.array(...)\n```\n\nFor now `transformSchemaName` only supports `pascalCase` but it can be\nextended in the future.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>","sha":"cb8b5564dcd413630f3a21db9626e5d1d1bc585a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/250857","number":250857,"mergeCommit":{"message":"[OpenAPI generator] add `transformSchemaName` config options (#250857)\n\n## Summary\n\nIf a yaml definition defines the type names in lowercase, like in the\ncases codebase, the generator would generate lowercase type/schema\nnames. This is against our eslint rules.\n\n```yaml\nin: query\nname: assignees\ndescription: >\n Filters the returned cases by assignees.\n Valid values are `none` or unique identifiers for the user profiles.\n These identifiers can be found by using the suggest user profile API.\n```\n\nwould generate:\n\n```ts\nexport type assignees = z.infer<typeof assignees>; // <-- ESLint error\nexport const assignees = z.array(...)\n```\n\nThis PR adds a transformSchemaName option that allows to transform the\nschema names to `PascalCase`.\n\nThat allows us to generate the correct schema names without having to\ntouch the API documentation yaml files.\n\nThis is the code that is generated with `transformSchemaName` set to\n`pascalCase`.\n\n```ts\nexport type Assignees = z.infer<typeof Assignees>;\nexport const Assignees = z.array(...)\n```\n\nFor now `transformSchemaName` only supports `pascalCase` but it can be\nextended in the future.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>","sha":"cb8b5564dcd413630f3a21db9626e5d1d1bc585a"}}]}] BACKPORT-->
…250857) (#252468) # Backport This will backport the following commits from `main` to `9.2`: - [[OpenAPI generator] add `transformSchemaName` config options (#250857)](#250857) <!--- Backport version: 10.2.0 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Jan Monschke","email":"jan.monschke@elastic.co"},"sourceCommit":{"committedDate":"2026-02-04T15:44:35Z","message":"[OpenAPI generator] add `transformSchemaName` config options (#250857)\n\n## Summary\n\nIf a yaml definition defines the type names in lowercase, like in the\ncases codebase, the generator would generate lowercase type/schema\nnames. This is against our eslint rules.\n\n```yaml\nin: query\nname: assignees\ndescription: >\n Filters the returned cases by assignees.\n Valid values are `none` or unique identifiers for the user profiles.\n These identifiers can be found by using the suggest user profile API.\n```\n\nwould generate:\n\n```ts\nexport type assignees = z.infer<typeof assignees>; // <-- ESLint error\nexport const assignees = z.array(...)\n```\n\nThis PR adds a transformSchemaName option that allows to transform the\nschema names to `PascalCase`.\n\nThat allows us to generate the correct schema names without having to\ntouch the API documentation yaml files.\n\nThis is the code that is generated with `transformSchemaName` set to\n`pascalCase`.\n\n```ts\nexport type Assignees = z.infer<typeof Assignees>;\nexport const Assignees = z.array(...)\n```\n\nFor now `transformSchemaName` only supports `pascalCase` but it can be\nextended in the future.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>","sha":"cb8b5564dcd413630f3a21db9626e5d1d1bc585a","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport missing","backport:all-open","Team:Cases","v9.4.0"],"title":"[OpenAPI generator] add `transformSchemaName` config options","number":250857,"url":"https://github.com/elastic/kibana/pull/250857","mergeCommit":{"message":"[OpenAPI generator] add `transformSchemaName` config options (#250857)\n\n## Summary\n\nIf a yaml definition defines the type names in lowercase, like in the\ncases codebase, the generator would generate lowercase type/schema\nnames. This is against our eslint rules.\n\n```yaml\nin: query\nname: assignees\ndescription: >\n Filters the returned cases by assignees.\n Valid values are `none` or unique identifiers for the user profiles.\n These identifiers can be found by using the suggest user profile API.\n```\n\nwould generate:\n\n```ts\nexport type assignees = z.infer<typeof assignees>; // <-- ESLint error\nexport const assignees = z.array(...)\n```\n\nThis PR adds a transformSchemaName option that allows to transform the\nschema names to `PascalCase`.\n\nThat allows us to generate the correct schema names without having to\ntouch the API documentation yaml files.\n\nThis is the code that is generated with `transformSchemaName` set to\n`pascalCase`.\n\n```ts\nexport type Assignees = z.infer<typeof Assignees>;\nexport const Assignees = z.array(...)\n```\n\nFor now `transformSchemaName` only supports `pascalCase` but it can be\nextended in the future.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>","sha":"cb8b5564dcd413630f3a21db9626e5d1d1bc585a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/250857","number":250857,"mergeCommit":{"message":"[OpenAPI generator] add `transformSchemaName` config options (#250857)\n\n## Summary\n\nIf a yaml definition defines the type names in lowercase, like in the\ncases codebase, the generator would generate lowercase type/schema\nnames. This is against our eslint rules.\n\n```yaml\nin: query\nname: assignees\ndescription: >\n Filters the returned cases by assignees.\n Valid values are `none` or unique identifiers for the user profiles.\n These identifiers can be found by using the suggest user profile API.\n```\n\nwould generate:\n\n```ts\nexport type assignees = z.infer<typeof assignees>; // <-- ESLint error\nexport const assignees = z.array(...)\n```\n\nThis PR adds a transformSchemaName option that allows to transform the\nschema names to `PascalCase`.\n\nThat allows us to generate the correct schema names without having to\ntouch the API documentation yaml files.\n\nThis is the code that is generated with `transformSchemaName` set to\n`pascalCase`.\n\n```ts\nexport type Assignees = z.infer<typeof Assignees>;\nexport const Assignees = z.array(...)\n```\n\nFor now `transformSchemaName` only supports `pascalCase` but it can be\nextended in the future.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>","sha":"cb8b5564dcd413630f3a21db9626e5d1d1bc585a"}},{"url":"https://github.com/elastic/kibana/pull/252467","number":252467,"branch":"9.3","state":"OPEN"}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
…250857) (#252472) # Backport This will backport the following commits from `main` to `8.19`: - [[OpenAPI generator] add `transformSchemaName` config options (#250857)](#250857) <!--- Backport version: 10.2.0 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Jan Monschke","email":"jan.monschke@elastic.co"},"sourceCommit":{"committedDate":"2026-02-04T15:44:35Z","message":"[OpenAPI generator] add `transformSchemaName` config options (#250857)\n\n## Summary\n\nIf a yaml definition defines the type names in lowercase, like in the\ncases codebase, the generator would generate lowercase type/schema\nnames. This is against our eslint rules.\n\n```yaml\nin: query\nname: assignees\ndescription: >\n Filters the returned cases by assignees.\n Valid values are `none` or unique identifiers for the user profiles.\n These identifiers can be found by using the suggest user profile API.\n```\n\nwould generate:\n\n```ts\nexport type assignees = z.infer<typeof assignees>; // <-- ESLint error\nexport const assignees = z.array(...)\n```\n\nThis PR adds a transformSchemaName option that allows to transform the\nschema names to `PascalCase`.\n\nThat allows us to generate the correct schema names without having to\ntouch the API documentation yaml files.\n\nThis is the code that is generated with `transformSchemaName` set to\n`pascalCase`.\n\n```ts\nexport type Assignees = z.infer<typeof Assignees>;\nexport const Assignees = z.array(...)\n```\n\nFor now `transformSchemaName` only supports `pascalCase` but it can be\nextended in the future.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>","sha":"cb8b5564dcd413630f3a21db9626e5d1d1bc585a","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport missing","backport:all-open","Team:Cases","v9.4.0"],"title":"[OpenAPI generator] add `transformSchemaName` config options","number":250857,"url":"https://github.com/elastic/kibana/pull/250857","mergeCommit":{"message":"[OpenAPI generator] add `transformSchemaName` config options (#250857)\n\n## Summary\n\nIf a yaml definition defines the type names in lowercase, like in the\ncases codebase, the generator would generate lowercase type/schema\nnames. This is against our eslint rules.\n\n```yaml\nin: query\nname: assignees\ndescription: >\n Filters the returned cases by assignees.\n Valid values are `none` or unique identifiers for the user profiles.\n These identifiers can be found by using the suggest user profile API.\n```\n\nwould generate:\n\n```ts\nexport type assignees = z.infer<typeof assignees>; // <-- ESLint error\nexport const assignees = z.array(...)\n```\n\nThis PR adds a transformSchemaName option that allows to transform the\nschema names to `PascalCase`.\n\nThat allows us to generate the correct schema names without having to\ntouch the API documentation yaml files.\n\nThis is the code that is generated with `transformSchemaName` set to\n`pascalCase`.\n\n```ts\nexport type Assignees = z.infer<typeof Assignees>;\nexport const Assignees = z.array(...)\n```\n\nFor now `transformSchemaName` only supports `pascalCase` but it can be\nextended in the future.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>","sha":"cb8b5564dcd413630f3a21db9626e5d1d1bc585a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/250857","number":250857,"mergeCommit":{"message":"[OpenAPI generator] add `transformSchemaName` config options (#250857)\n\n## Summary\n\nIf a yaml definition defines the type names in lowercase, like in the\ncases codebase, the generator would generate lowercase type/schema\nnames. This is against our eslint rules.\n\n```yaml\nin: query\nname: assignees\ndescription: >\n Filters the returned cases by assignees.\n Valid values are `none` or unique identifiers for the user profiles.\n These identifiers can be found by using the suggest user profile API.\n```\n\nwould generate:\n\n```ts\nexport type assignees = z.infer<typeof assignees>; // <-- ESLint error\nexport const assignees = z.array(...)\n```\n\nThis PR adds a transformSchemaName option that allows to transform the\nschema names to `PascalCase`.\n\nThat allows us to generate the correct schema names without having to\ntouch the API documentation yaml files.\n\nThis is the code that is generated with `transformSchemaName` set to\n`pascalCase`.\n\n```ts\nexport type Assignees = z.infer<typeof Assignees>;\nexport const Assignees = z.array(...)\n```\n\nFor now `transformSchemaName` only supports `pascalCase` but it can be\nextended in the future.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>","sha":"cb8b5564dcd413630f3a21db9626e5d1d1bc585a"}},{"url":"https://github.com/elastic/kibana/pull/252467","number":252467,"branch":"9.3","state":"OPEN"}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
## Summary Depends on #250857 Adds a new step to the CI that generates zod schemas from the API yaml specifications --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
…0913) ## Summary Depends on elastic#250857 Adds a new step to the CI that generates zod schemas from the API yaml specifications --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
…0913) ## Summary Depends on elastic#250857 Adds a new step to the CI that generates zod schemas from the API yaml specifications --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Summary
If a yaml definition defines the type names in lowercase, like in the cases codebase, the generator would generate lowercase type/schema names. This is against our eslint rules.
would generate:
This PR adds a transformSchemaName option that allows to transform the schema names to
PascalCase.That allows us to generate the correct schema names without having to touch the API documentation yaml files.
This is the code that is generated with
transformSchemaNameset topascalCase.For now
transformSchemaNameonly supportspascalCasebut it can be extended in the future.