Skip to content

Conversation

pquentin
Copy link
Member

@pquentin pquentin commented Oct 9, 2025

It was incorrectly set to false for 68 APIs.

Copy link
Contributor

github-actions bot commented Oct 9, 2025

Following you can find the validation changes against the target branch for the APIs.

No changes detected.

You can validate these APIs yourself by using the make validate target.


// validate body
if (bodyMember != null) {
mapping.requestBodyRequired = !(bodyMember as PropertySignature).hasQuestionToken()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We check if the body has a question token, that is, if it is written as body?: ....

This was already applied in the case of bodyValue below (line 319/320), but this branch was missed, which means the default from rest-api-spec, "required: false," was taking over.

@pquentin pquentin merged commit 62d200f into main Oct 10, 2025
16 checks passed
@pquentin pquentin deleted the fix-required-body branch October 10, 2025 08:13
Copy link
Contributor

The backport to 8.19 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-8.19 8.19
# Navigate to the new working tree
cd .worktrees/backport-8.19
# Create a new branch
git switch --create backport-5465-to-8.19
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 62d200f5597fbf3529686f7ae7063d6b0a77f1cb
# Push it to GitHub
git push --set-upstream origin backport-5465-to-8.19
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-8.19

Then, create a pull request where the base branch is 8.19 and the compare/head branch is backport-5465-to-8.19.

github-actions bot pushed a commit that referenced this pull request Oct 10, 2025
(cherry picked from commit 62d200f)
pquentin added a commit that referenced this pull request Oct 10, 2025
(cherry picked from commit 62d200f)

# Conflicts:
#	output/openapi/elasticsearch-openapi.json
#	output/openapi/elasticsearch-serverless-openapi.json
#	output/schema/schema.json
@pquentin
Copy link
Member Author

💚 All backports created successfully

Status Branch Result
8.19

Questions ?

Please refer to the Backport tool documentation

pquentin added a commit that referenced this pull request Oct 10, 2025
(cherry picked from commit 62d200f)

# Conflicts:
#	output/openapi/elasticsearch-openapi.json
#	output/openapi/elasticsearch-serverless-openapi.json
#	output/schema/schema.json
pquentin added a commit that referenced this pull request Oct 10, 2025
(cherry picked from commit 62d200f)

Co-authored-by: Quentin Pradet <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants