Skip to content

Commit 436f754

Browse files
committed
feat: update schemas
1 parent 83da78d commit 436f754

16 files changed

+252
-253
lines changed

schemas/cache/.hashes.json

Lines changed: 153 additions & 154 deletions
Large diffs are not rendered by default.

schemas/cache/adagents.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"description": "Declaration of authorized sales agents for advertising inventory. Hosted at /.well-known/adagents.json on publisher domains. Can either contain the full structure inline or reference an authoritative URL.",
44
"examples": [
55
{
6-
"$schema": "https://adcontextprotocol.org/schemas/adagents.json",
6+
"$schema": "/schemas/latest/adagents.json",
77
"authoritative_location": "https://cdn.example.com/adagents/v2/adagents.json",
88
"last_updated": "2025-01-15T10:00:00Z"
99
},
1010
{
11-
"$schema": "https://adcontextprotocol.org/schemas/adagents.json",
11+
"$schema": "/schemas/latest/adagents.json",
1212
"authorized_agents": [
1313
{
1414
"authorization_type": "property_tags",
@@ -41,7 +41,7 @@
4141
}
4242
},
4343
{
44-
"$schema": "https://adcontextprotocol.org/schemas/adagents.json",
44+
"$schema": "/schemas/latest/adagents.json",
4545
"authorized_agents": [
4646
{
4747
"authorization_type": "property_tags",
@@ -135,7 +135,7 @@
135135
}
136136
},
137137
{
138-
"$schema": "https://adcontextprotocol.org/schemas/adagents.json",
138+
"$schema": "/schemas/latest/adagents.json",
139139
"authorized_agents": [
140140
{
141141
"authorization_type": "property_tags",
@@ -174,7 +174,7 @@
174174
}
175175
},
176176
{
177-
"$schema": "https://adcontextprotocol.org/schemas/adagents.json",
177+
"$schema": "/schemas/latest/adagents.json",
178178
"authorized_agents": [
179179
{
180180
"authorization_type": "publisher_properties",
@@ -226,7 +226,6 @@
226226
"description": "URL reference variant - points to the authoritative location of the adagents.json file",
227227
"properties": {
228228
"$schema": {
229-
"default": "https://adcontextprotocol.org/schemas/adagents.json",
230229
"description": "JSON Schema identifier for this adagents.json file",
231230
"type": "string"
232231
},
@@ -252,7 +251,6 @@
252251
"description": "Inline structure variant - contains full agent authorization data",
253252
"properties": {
254253
"$schema": {
255-
"default": "https://adcontextprotocol.org/schemas/adagents.json",
256254
"description": "JSON Schema identifier for this adagents.json file",
257255
"type": "string"
258256
},
Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,37 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"allOf": [
4-
{
5-
"$ref": "../../core/dimensions.json"
3+
"additionalProperties": false,
4+
"description": "Image asset with URL and dimensions",
5+
"properties": {
6+
"alt_text": {
7+
"description": "Alternative text for accessibility",
8+
"type": "string"
9+
},
10+
"format": {
11+
"description": "Image file format (jpg, png, gif, webp, etc.)",
12+
"type": "string"
13+
},
14+
"height": {
15+
"description": "Height in pixels",
16+
"minimum": 1,
17+
"type": "integer"
618
},
7-
{
8-
"additionalProperties": false,
9-
"properties": {
10-
"alt_text": {
11-
"description": "Alternative text for accessibility",
12-
"type": "string"
13-
},
14-
"format": {
15-
"description": "Image file format (jpg, png, gif, webp, etc.)",
16-
"type": "string"
17-
},
18-
"url": {
19-
"description": "URL to the image asset",
20-
"format": "uri",
21-
"type": "string"
22-
}
23-
},
24-
"required": [
25-
"url"
26-
],
27-
"type": "object"
19+
"url": {
20+
"description": "URL to the image asset",
21+
"format": "uri",
22+
"type": "string"
23+
},
24+
"width": {
25+
"description": "Width in pixels",
26+
"minimum": 1,
27+
"type": "integer"
2828
}
29+
},
30+
"required": [
31+
"url",
32+
"width",
33+
"height"
2934
],
30-
"description": "Image asset with URL and dimensions",
31-
"title": "Image Asset"
35+
"title": "Image Asset",
36+
"type": "object"
3237
}
Lines changed: 37 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,43 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"allOf": [
4-
{
5-
"$ref": "../../core/dimensions.json"
3+
"additionalProperties": false,
4+
"description": "Video asset with URL and specifications",
5+
"properties": {
6+
"bitrate_kbps": {
7+
"description": "Video bitrate in kilobits per second",
8+
"minimum": 1,
9+
"type": "integer"
10+
},
11+
"duration_ms": {
12+
"description": "Video duration in milliseconds",
13+
"minimum": 1,
14+
"type": "integer"
15+
},
16+
"format": {
17+
"description": "Video file format (mp4, webm, mov, etc.)",
18+
"type": "string"
619
},
7-
{
8-
"additionalProperties": false,
9-
"properties": {
10-
"bitrate_kbps": {
11-
"description": "Video bitrate in kilobits per second",
12-
"minimum": 1,
13-
"type": "integer"
14-
},
15-
"duration_ms": {
16-
"description": "Video duration in milliseconds",
17-
"minimum": 1,
18-
"type": "integer"
19-
},
20-
"format": {
21-
"description": "Video file format (mp4, webm, mov, etc.)",
22-
"type": "string"
23-
},
24-
"url": {
25-
"description": "URL to the video asset",
26-
"format": "uri",
27-
"type": "string"
28-
}
29-
},
30-
"required": [
31-
"url"
32-
],
33-
"type": "object"
20+
"height": {
21+
"description": "Height in pixels",
22+
"minimum": 1,
23+
"type": "integer"
24+
},
25+
"url": {
26+
"description": "URL to the video asset",
27+
"format": "uri",
28+
"type": "string"
29+
},
30+
"width": {
31+
"description": "Width in pixels",
32+
"minimum": 1,
33+
"type": "integer"
3434
}
35+
},
36+
"required": [
37+
"url",
38+
"width",
39+
"height"
3540
],
36-
"description": "Video asset with URL and specifications",
37-
"title": "Video Asset"
41+
"title": "Video Asset",
42+
"type": "object"
3843
}

schemas/cache/core/async-response-data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@
8484
],
8585
"description": "Union of all possible data payloads for async task webhook responses. For completed/failed statuses, use the main task response schema. For working/input-required/submitted, use the status-specific schemas.",
8686
"title": "AdCP Async Response Data"
87-
}
87+
}

schemas/cache/core/dimensions.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

schemas/cache/core/push-notification-config.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"additionalProperties": false,
4-
"description": "Webhook configuration for asynchronous task notifications. Uses A2A-compatible PushNotificationConfig structure. Supports Bearer tokens (simple) or HMAC signatures (production-recommended).",
3+
"description": "Webhook configuration for asynchronous task notifications. Uses A2A-compatible PushNotificationConfig structure. Supports Bearer tokens (simple) or HMAC signatures (production-recommended). This schema is designed for composition via allOf - consuming schemas should define their own additionalProperties constraints.",
54
"properties": {
65
"authentication": {
76
"additionalProperties": false,

schemas/cache/creative/asset-types/index.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"adcp_version": "2.5.0",
3+
"adcp_version": "latest",
44
"architecture": {
55
"format_aware_validation": {
66
"description": "Creative manifests are validated in the context of their format specification",
@@ -89,9 +89,9 @@
8989
"typical_use": "DCO (Dynamic Creative Optimization), real-time personalization, server-side rendering"
9090
}
9191
},
92-
"baseUrl": "/schemas/2.5.0",
92+
"baseUrl": "/schemas/latest",
9393
"description": "Registry of asset types used in AdCP creative manifests. Each asset type defines the structure of actual content payloads (what you send), not requirements or constraints (which belong in format specifications).",
94-
"lastUpdated": "2025-12-11",
94+
"lastUpdated": "2025-12-18",
9595
"title": "AdCP Asset Type Registry",
9696
"usage_notes": {
9797
"creative_manifests": "Creative manifests provide actual asset content, keyed by asset_id from the format. Asset type is determined by the format specification, not declared in the payload.",
@@ -100,6 +100,6 @@
100100
},
101101
"version": "1.0.0",
102102
"versioning": {
103-
"note": "AdCP uses build-time versioning. This directory contains schemas for AdCP 2.5.0. Full semantic versions are available at /schemas/{version}/ (e.g., /schemas/2.5.0/). Major version aliases point to the latest release: /schemas/v2/ \u2192 /schemas/2.5.0/."
103+
"note": "AdCP uses build-time versioning. This directory contains schemas for AdCP latest. Full semantic versions are available at /schemas/{version}/ (e.g., /schemas/2.5.0/). Major version aliases point to the latest release: /schemas/vlatest/ \u2192 /schemas/latest/."
104104
}
105105
}

schemas/cache/creative/preview-creative-response.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
"previews",
8585
"expires_at"
8686
],
87+
"title": "PreviewCreativeSingleResponse",
8788
"type": "object"
8889
},
8990
{
@@ -114,7 +115,8 @@
114115
},
115116
"required": [
116117
"response"
117-
]
118+
],
119+
"title": "PreviewBatchResultSuccess"
118120
},
119121
{
120122
"properties": {
@@ -125,7 +127,8 @@
125127
},
126128
"required": [
127129
"error"
128-
]
130+
],
131+
"title": "PreviewBatchResultError"
129132
}
130133
],
131134
"properties": {
@@ -233,6 +236,7 @@
233236
"response_type",
234237
"results"
235238
],
239+
"title": "PreviewCreativeBatchResponse",
236240
"type": "object"
237241
}
238242
],

schemas/cache/media-buy/build-creative-response.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"required": [
2626
"creative_manifest"
2727
],
28+
"title": "BuildCreativeSuccess",
2829
"type": "object"
2930
},
3031
{
@@ -54,6 +55,7 @@
5455
"required": [
5556
"errors"
5657
],
58+
"title": "BuildCreativeError",
5759
"type": "object"
5860
}
5961
],

0 commit comments

Comments
 (0)