Skip to content

fix: autogenerated code to allow passthrough schemas to prevent Zod field stripping#159

Merged
margaretjgu merged 3 commits into
mainfrom
bulk
Apr 15, 2026
Merged

fix: autogenerated code to allow passthrough schemas to prevent Zod field stripping#159
margaretjgu merged 3 commits into
mainfrom
bulk

Conversation

@margaretjgu
Copy link
Copy Markdown
Contributor

@margaretjgu margaretjgu commented Apr 15, 2026

closes #155
relates to https://github.com/elastic/elastic-client-generator-js/pull/159

Tested fix:
image

  • did a bulk index and _source was properly propagated compared to empty object before

@margaretjgu margaretjgu changed the title autogen: generate passthrough schemas to prevent Zod field stripping fix: autogenerated code to allow passthrough schemas to prevent Zod field stripping Apr 15, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 15, 2026

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ COPYPASTE jscpd yes no no 3.19s
✅ REPOSITORY gitleaks yes no no 8.33s
✅ REPOSITORY git_diff yes no no 0.04s
✅ REPOSITORY secretlint yes no no 2.08s
✅ REPOSITORY trivy yes no no 13.99s
✅ TYPESCRIPT eslint 3 0 0 2.31s

See detailed reports in MegaLinter artifacts
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security
Show us your support by starring ⭐ the repository

@margaretjgu margaretjgu merged commit 1b91960 into main Apr 15, 2026
19 checks passed
@margaretjgu margaretjgu deleted the bulk branch April 15, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

elastic es bulk --operations indexes documents with empty _source

2 participants