Skip to content

MessageComponentType enum is wrong #179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
npenate opened this issue Dec 15, 2021 · 2 comments
Closed

MessageComponentType enum is wrong #179

npenate opened this issue Dec 15, 2021 · 2 comments

Comments

@npenate
Copy link

npenate commented Dec 15, 2021

The current possible values of MessageComponentType enum are:

  HEADER("header"),
  BODY("body"),
  FOOTER("footer"),
  BUTTONS("buttons");

The BUTTONS value is not a valid value since the API is expecting BUTTON("button"). You can see this example in documentation.
I have tried to make a call using BUTTONS but received the following error:

http status code: 400
{code=21, description='Content is not valid for type hsm: hsm components validation has failed. validation of component template has failed. Err: unknown component type buttons', parameter='null'}
@denizkilic
Copy link
Contributor

Hi @npenate ,
Thank you for creating the issue. This issue will be fixed as soon as possible and I will let you know when the new release is ready.

@denizkilic
Copy link
Contributor

Hi @npenate,
Enum is updated in the new release, https://github.com/messagebird/java-rest-api/releases/tag/v3.2.0 Please let us know if you have more issues.

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

No branches or pull requests

2 participants