Skip to content

feat: sync schemas to AdCP 3.0.0-rc.1#141

Merged
bokelley merged 1 commit intomainfrom
bokelley/version-3.0-rc1
Mar 1, 2026
Merged

feat: sync schemas to AdCP 3.0.0-rc.1#141
bokelley merged 1 commit intomainfrom
bokelley/version-3.0-rc1

Conversation

@bokelley
Copy link
Contributor

@bokelley bokelley commented Mar 1, 2026

Summary

  • Pins ADCP_VERSION to 3.0.0-rc.1 (was latest)
  • Syncs 328 schemas from adcontextprotocol.org/schemas/3.0.0-rc.1 (10 schemas updated)
  • Regenerates Pydantic types from updated schemas

Schema changes in 3.0.0-rc.1

  • get-media-buys-request: account field is now optional (was required) — enables querying across all accessible accounts
  • get-products-request: buying_mode descriptions include v3 migration guidance for sellers handling pre-v3 clients
  • core/provenance: AiTool.version description clarifies to use model version rather than API version
  • Various buyer_ref description updates in media buy schemas

Also fixed

  • generate_ergonomic_coercion.py: GetProductsRequest is a RootModel wrapper — the generator was importing FieldModel/GetProductsRequest but analyzing the wrong class (no fields found). Fixed to analyze and apply coercion to the concrete variants GetProductsRequest1/2/3, so fields=["product_id", "name"] now works ergonomically on all buying modes.
  • Added test for GetMediaBuysRequest.account being optional per the schema change.

Test plan

  • 651 tests pass
  • Schema sync confirmed against 3.0.0-rc.1 endpoint

🤖 Generated with Claude Code

- Pin ADCP_VERSION to 3.0.0-rc.1 (from latest)
- Sync 328 schemas from adcontextprotocol.org/schemas/3.0.0-rc.1
- Regenerate Pydantic types from updated schemas
- Fix ergonomic coercion generator to apply FieldModel coercion to
  GetProductsRequest1/2/3 variants (was imported but never wired)
- Add test for GetMediaBuysRequest.account being optional (v3 change)

Key schema changes:
- get-media-buys-request: account is now optional (was required)
- get-products-request: buying_mode descriptions include v3 migration note
- core/provenance: AiTool.version should use model version not API version
- Various buyer_ref description updates

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@bokelley bokelley merged commit b0497a3 into main Mar 1, 2026
8 checks passed
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