Problem
adcp.types.generated_poc.media_buy.create_media_buy_response.CreateMediaBuyResponse1 declares a buyer_ref: str | None = None field, but buyer_ref does not exist in the AdCP create-media-buy-response.json schema.
Verified against:
v3.1.0-beta.3 — grep buyer_ref returns empty
v3.1.0-rc.8 — grep buyer_ref returns empty
The field was present in a pre-3.0 release candidate but was removed before 3.0 GA. The SDK codegen is carrying it forward from a historical schema version.
Generated source
# generated by datamodel-codegen:
# filename: media_buy/create_media_buy_response.json
# timestamp: 2026-05-22T13:15:12+00:00
class CreateMediaBuyResponse1(AdcpVersionEnvelope):
model_config = ConfigDict(extra='allow')
media_buy_id: str
packages: list[package_1.Package]
buyer_ref: str | None = None # ← NOT IN SCHEMA
media_buy_status: ...
status: ...
Impact
Tests that assert buyer_ref not in model_fields fail on SDK 5.7 because the field exists on the class. The field is never populated by spec-compliant sellers, but its presence confuses schema validation and contract tests.
Expected
Remove buyer_ref from CreateMediaBuyResponse1. It should only appear on the request schema.
Problem
adcp.types.generated_poc.media_buy.create_media_buy_response.CreateMediaBuyResponse1declares abuyer_ref: str | None = Nonefield, butbuyer_refdoes not exist in the AdCPcreate-media-buy-response.jsonschema.Verified against:
v3.1.0-beta.3—grep buyer_refreturns emptyv3.1.0-rc.8—grep buyer_refreturns emptyThe field was present in a pre-3.0 release candidate but was removed before 3.0 GA. The SDK codegen is carrying it forward from a historical schema version.
Generated source
Impact
Tests that assert
buyer_ref not in model_fieldsfail on SDK 5.7 because the field exists on the class. The field is never populated by spec-compliant sellers, but its presence confuses schema validation and contract tests.Expected
Remove
buyer_reffromCreateMediaBuyResponse1. It should only appear on the request schema.