Skip to content

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

Open
csdinos wants to merge 1 commit into
mainfrom
dinos/quote-whatsapp-phone-example
Open

csdinos wants to merge 1 commit into
mainfrom
dinos/quote-whatsapp-phone-example

Conversation

@csdinos

@csdinos csdinos commented Oct 15, 2026

Copy link
Copy Markdown

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

This branch has not been deployed

No deployments
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