Skip to content

Conversation

@Yang-33
Copy link
Contributor

@Yang-33 Yang-33 commented Dec 26, 2023

This pull request defines the keywords that can be specified for template messages and flex messages as enums. In addition to keywords, template messages and flex messages can specify values in percentages or pixels.
(e.g. image size in flex message: https://developers.line.biz/en/docs/messaging-api/flex-message-layout/#image-size)

Therefore, we will not define the new enum as a value that can be specified for template messages and flex messages.

The main purpose of this change is to provide support for users who use the bot SDK to have the option to use enums.

Resolve #42

@Yang-33 Yang-33 enabled auto-merge (squash) December 27, 2023 03:47
@Yang-33
Copy link
Contributor Author

Yang-33 commented Dec 27, 2023

Thank you for review!

@Yang-33 Yang-33 merged commit 16f6311 into line:main Dec 27, 2023
Yang-33 added a commit to line/line-bot-sdk-java that referenced this pull request Jan 31, 2024
line/line-openapi#46 defines keywords for flex
messages and template messages.
In addition to keywords, template messages and flex messages can specify
values in percentages or pixels.
(e.g. image size in flex message:
https://developers.line.biz/en/docs/messaging-api/flex-message-layout/#image-size)
This just supports converting enum to string value for bot sdk users,
and users can select one of raw value or enum.toValue().



Resolve #1155
@Yang-33 Yang-33 deleted the define-keywords-for-flex-components branch April 17, 2024 06:20
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.

Add missing enums for flex message

2 participants