Skip to content

Make from and into required on merge_contacts_request (all versions)#582

Merged
marcmlc merged 1 commit into
mainfrom
marc/merge-required-params
Jul 9, 2026
Merged

Make from and into required on merge_contacts_request (all versions)#582
marcmlc merged 1 commit into
mainfrom
marc/merge-required-params

Conversation

@marcmlc

@marcmlc marcmlc commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Why?

The merge endpoint (POST /contacts/merge) cannot complete without both from and into — a request omitting either is rejected server-side because neither contact can be resolved. The schema previously documented both as optional, so generated SDKs and the "Try it" console treated them as skippable, letting callers construct requests the API will always reject.

How?

Add required: [from, into] to the merge_contacts_request schema across every versioned spec that defines the merge endpoint (2.7–2.15 and the unstable description). This is a spec-accuracy change only: it can only reject requests the backend would already reject.

Generated with Claude Code

The merge endpoint (POST /contacts/merge) resolves from/into via find_user
and cannot succeed without both, so they are de-facto required. Declare them
in the schema across all supported API versions to match runtime behavior.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@marcmlc marcmlc merged commit 019741b into main Jul 9, 2026
3 checks passed
@marcmlc marcmlc deleted the marc/merge-required-params branch July 9, 2026 10:35
marcmlc added a commit that referenced this pull request Jul 9, 2026
PR #582/#1024 added a required: [from, into] block to every version, but the
2.11 spec already declared from/into required via a trailing required: list.
The duplicate mapping key broke strict YAML parsing of the 2.11 spec. Remove
the added block; the pre-existing declaration already makes both fields required.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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