Skip to content

fix(es): accept REST-style bodies for index and create - #493

Open
margaretjgu wants to merge 4 commits into
mainfrom
fix/rest-style-body-index-create
Open

fix(es): accept REST-style bodies for index and create#493
margaretjgu wants to merge 4 commits into
mainfrom
fix/rest-style-body-index-create

Conversation

@margaretjgu

@margaretjgu margaretjgu commented Jul 30, 2026

Copy link
Copy Markdown
Member

Closes #360. es index and es create now accept REST-style bodies piped via stdin without requiring a document wrapper key - when the wrapper is missing it is automatically added before schema validation runs. Commands that already send {"document": {...}} are unaffected.

@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ COPYPASTE jscpd yes no no 1.04s
✅ REPOSITORY gitleaks yes no no 59.16s
✅ REPOSITORY git_diff yes no no 0.66s
✅ REPOSITORY secretlint yes no no 28.05s
✅ REPOSITORY trivy yes no no 17.47s
✅ TYPESCRIPT eslint 6 0 0 5.53s

Notices

📣 MegaLinter 9.5.0 is out! Discover the new features and security recommendations in the release announcement. (Skip this info by defining SECURITY_SUGGESTIONS: false)

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 marked this pull request as draft July 30, 2026 17:41
@margaretjgu
margaretjgu marked this pull request as ready for review July 31, 2026 19:02
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.

es index/create: accept REST-style bodies (follow-up to #95 / #130)

1 participant