Skip to content

Quote the WhatsApp to.phone example in the Messages API - #730

Merged
csdinos merged 1 commit into
mainfrom
dinos/quote-whatsapp-phone-example
Oct 20, 2026
Merged

csdinos merged 1 commit into
mainfrom
dinos/quote-whatsapp-phone-example

Conversation

@csdinos

@csdinos csdinos commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Why?

The WhatsApp example for POST /messages has phone: +5547999998888 without quotes, so YAML reads it as an integer. The rendered example and the generated SDKs show the phone as a JSON number, but the API expects a string.

How?

Quotes the example value in the Preview, 2.16 and 2.17 specs so it stays a string.

Generated with Claude Code

Unquoted, `+5547999998888` is parsed by YAML as an integer, so the rendered
example and the generated SDKs show the phone as a JSON number instead of a
string.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@csdinos
csdinos marked this pull request as ready for review October 15, 2026 12:45
@csdinos
csdinos merged commit 05a2b72 into main Oct 20, 2026
5 checks passed
@csdinos
csdinos deleted the dinos/quote-whatsapp-phone-example branch October 20, 2026 08:57
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