Skip to content
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

Fix Whatsapp API latitude and longitude field names #547

Closed
wants to merge 3 commits into from

Conversation

jeremychan
Copy link

According to the API https://developer.vonage.com/en/messages/code-snippets/whatsapp/send-location for sending location the field names should be "latitude" and "longitude". Currently "lat" and "long" is causing the message to not deliver properly

According to the API the fields should be "latitude" and "longitude", using "lat" and "long" is causing the Location to not work
@SMadani
Copy link
Contributor

SMadani commented Oct 21, 2024

Thank you for reporting this and an attempt to fix. I can't merge this as-is since the tests need updating, and lat / long is used for deserialisation of inbound messages (as per the spec), so will need to use @JsonAlias instead.

@SMadani
Copy link
Contributor

SMadani commented Oct 21, 2024

Fixed in 2bf35e0.

@SMadani SMadani closed this Oct 21, 2024
@jeremychan
Copy link
Author

thank you

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