Skip to content

Add required: true for setRichMenuImage to fix sdk parameters#123

Open
Yang-33 wants to merge 2 commits intomainfrom
tsv6-set-richmenu-image-file
Open

Add required: true for setRichMenuImage to fix sdk parameters#123
Yang-33 wants to merge 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

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.

1 participant