[9.3] [Security][OpenAPI generator] add experimentallyImportZodV4 (#253568)#253792
Merged
janmonschke merged 3 commits intoelastic:9.3from Feb 20, 2026
Merged
[9.3] [Security][OpenAPI generator] add experimentallyImportZodV4 (#253568)#253792janmonschke merged 3 commits intoelastic:9.3from
experimentallyImportZodV4 (#253568)#253792janmonschke merged 3 commits intoelastic:9.3from
Conversation
…c#253568) ## Summary Adds an experimental config flag `experimentallyImportZodV4` that changes the generated zod import to `import { z } from '@kbn/zod/v4';`. This is meant as a quick way to unblock the cases workflow integration because workflow schemas use zod v4. There is some work done to migrate larger parts of the Kibana codebase (and this generator) to v4 but it will not finish in time for the workflows integration (elastic/kibana-team#2589). We recommend removing this flag as part of the zod upgrade work. --------- Co-authored-by: Tiago Costa <tiago.costa@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit df5b635) # Conflicts: # x-pack/platform/plugins/shared/cases/docs/openapi/bundled-types.gen.ts # x-pack/platform/plugins/shared/cases/scripts/openapi_generate.js
Contributor
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]History
|
MykhailoKondrat
approved these changes
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
mainto9.3:experimentallyImportZodV4(#253568)Questions ?
Please refer to the Backport tool documentation