Skip to content

Make body in setRichMenuImage required#123

Merged
Yang-33 merged 2 commits intomainfrom
tsv6-set-richmenu-image-file
Apr 13, 2026
Merged

Make body in setRichMenuImage required#123
Yang-33 merged 2 commits intomainfrom
tsv6-set-richmenu-image-file

Conversation

@Yang-33
Copy link
Copy Markdown
Contributor

@Yang-33 Yang-33 commented Apr 7, 2026

While upgrading the Node.js SDK to TypeScript v6, I noticed that the binary parameter for setRichMenuImage is incorrectly marked as optional. You can't set a rich menu image without the image data, so it should never be optional. This change corrects this.

Looking at the generated code, this issue affects all SDKs except for Go. While the real-world impact is likely minor, since users would quickly realize the image is necessary and wouldn't keep sending requests without it. Anyway the API definition in the YAML should be accurate. Let's ensure it reflects the correct, required state.

I also checked other APIs, but only the setRichMenuImage forgets this, so we don't have to modify others as of now.

@Yang-33 Yang-33 requested a review from a team April 7, 2026 14:56
@Yang-33 Yang-33 marked this pull request as ready for review April 7, 2026 14:59
@github-actions
Copy link
Copy Markdown

NODEJS

You can check generated code in nodejs

Check the diff here

@github-actions
Copy link
Copy Markdown

PHP

You can check generated code in php

Check the diff here

@github-actions
Copy link
Copy Markdown

JAVA

You can check generated code in java

Check the diff here

@github-actions
Copy link
Copy Markdown

GO

You can check generated code in go

Check the diff here

@github-actions
Copy link
Copy Markdown

PYTHON

You can check generated code in python

Check the diff here

@github-actions
Copy link
Copy Markdown

RUBY

You can check generated code in ruby

Check the diff here

@Yang-33 Yang-33 added this pull request to the merge queue Apr 13, 2026
Merged via the queue into main with commit 779d8ca Apr 13, 2026
23 checks passed
@Yang-33 Yang-33 deleted the tsv6-set-richmenu-image-file branch April 13, 2026 12:53
github-merge-queue bot pushed a commit to line/line-bot-sdk-python that referenced this pull request Apr 13, 2026
line/line-openapi#123

Currently `setRichMenuImage`'s body is optional, but to set richmenu
image, image data itself is required of course. This change fixes it.

Co-authored-by: github-actions <github-actions@github.com>
github-merge-queue bot pushed a commit to line/line-bot-sdk-php that referenced this pull request Apr 13, 2026
line/line-openapi#123

Currently `setRichMenuImage`'s body is optional, but to set richmenu
image, image data itself is required of course. This change fixes it.

---------

Co-authored-by: github-actions <github-actions@github.com>
github-merge-queue bot pushed a commit to line/line-bot-sdk-ruby that referenced this pull request Apr 13, 2026
line/line-openapi#123

Currently `setRichMenuImage`'s body is optional, but to set richmenu
image, image data itself is required of course. This change fixes it.

Co-authored-by: github-actions <github-actions@github.com>
github-merge-queue bot pushed a commit to line/line-bot-sdk-nodejs that referenced this pull request Apr 13, 2026
line/line-openapi#123

Currently `setRichMenuImage`'s body is optional, but to set richmenu
image, image data itself is required of course. This change fixes it.

Co-authored-by: github-actions <github-actions@github.com>
github-merge-queue bot pushed a commit to line/line-bot-sdk-java that referenced this pull request Apr 13, 2026
line/line-openapi#123

Currently `setRichMenuImage`'s body is optional, but to set richmenu
image, image data itself is required of course. This change fixes it.

Co-authored-by: github-actions <github-actions@github.com>
@Yang-33 Yang-33 changed the title Add required: true for setRichMenuImage to fix sdk parameters Make body in setRichMenuImage required Apr 14, 2026
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.

2 participants