Skip to content

docs: clarify V1 and V2 result schema rules - #96

Merged
JJasonSun merged 2 commits into
mainfrom
docs/result-schema-477-public
Oct 22, 2026
Merged

JJasonSun merged 2 commits into
mainfrom
docs/result-schema-477-public

Conversation

@JJasonSun

Copy link
Copy Markdown
Contributor

Summary

Clarify which result-schema keywords developers can use and how to correct rejected schemas.

V2 Calls       → rejected keywords, valid example, application-side checks
Legacy Calls   → supported features for both result fields
Errors / Reference → matching corrections and field descriptions

Refs CALLE-AI/awesome-phone-call-agents#477.

API contract

Only three OpenAPI description fields change; request and response structures are unchanged. V2 rejection behavior is documented in #477 and was verified against the public API on October 22. The legacy per-recipient support list restores the guidance approved in #58.

Evidence

  • Before: V2 guidance omitted length, numeric-bound and pattern keyword rejections; the legacy per-recipient reference omitted its supported-feature list.
    After: The guides and reference explain the supported scope and corrections, with a tested V2 schema example.
  • Local validation on October 22: pnpm run validate passed, including all 32 browser tests. Focused navigation checks and the OpenAPI description-only comparison passed.
  • Public API checks on October 22: all five unsupported keywords returned 400 result_schema_invalid; the documented schema completed a test call with an available result.
  • V1 runtime acceptance or enforcement of these five keywords was not tested. The text describes the published validation guarantees and directs applications to check their business constraints.

Merge Danger

Door: two-way. Reverting the documentation commit restores the previous wording.

Blast Radius: documentation. Affects schema guidance and API Reference descriptions; no runtime code changes.

Checklist

  • I kept the change focused and public-facing.
  • I removed secrets, private URLs, phone numbers, and customer data.
  • Any OpenAPI change describes behavior supported by the public API.
  • Existing site tests and focused browser checks cover the affected pages and links; no new test logic was needed.
  • No layout or styling changes; screenshots are not applicable.
  • I ran pnpm run validate.

@JJasonSun
JJasonSun marked this pull request as ready for review October 22, 2026 08:18
@JJasonSun
JJasonSun merged commit 2175edd into main Oct 22, 2026
1 check passed
@JJasonSun
JJasonSun deleted the docs/result-schema-477-public branch October 22, 2026 08:18
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