You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: sync schemas to AdCP v2.4.0 with discriminated unions
Synced schemas from upstream AdCP repository (v2.4.0):
- Added discriminated union constraints to product.json publisher_properties
- Added discriminated union constraints to adagents.json authorization
- Uses selection_type and authorization_type discriminators
- Properly enforces mutual exclusivity via oneOf + const discriminators
Note: Current type generation doesn't yet support discriminated unions.
Need to update generation approach to properly handle oneOf with discriminators.
See UPSTREAM_SCHEMA_ISSUES.md for details on upstream fixes.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
"description": "Universal identifier for using a signal on a destination platform. Can be either a segment ID or a key-value pair depending on the platform's targeting mechanism.",
6
+
"type": "object",
7
+
"oneOf": [
8
+
{
9
+
"properties": {
10
+
"type": {
11
+
"type": "string",
12
+
"const": "segment_id",
13
+
"description": "Segment ID based targeting"
14
+
},
15
+
"segment_id": {
16
+
"type": "string",
17
+
"description": "The platform-specific segment identifier to use in campaign targeting"
0 commit comments