forked from adobe/xdm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent-details.schema.json
More file actions
118 lines (118 loc) · 6.03 KB
/
content-details.schema.json
File metadata and controls
118 lines (118 loc) · 6.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"meta:license": [
"Copyright 2021 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "https://ns.adobe.com/experience/decisioning/content-details",
"meta:extensible": true,
"type": "object",
"title": "Content Details",
"description": "Content used to represent a decision option in a particular channel and placement.",
"definitions": {
"content-details": {
"properties": {
"xdm:placement": {
"type": "string",
"format": "uri-reference",
"title": "Placement",
"description": "Placement to comply with. The value is the URI (@id) of the offer placement that is referenced. See schema https://ns.adobe.com/experience/decisioning/placement",
"meta:titleId": "content-details##xdm:placement##title##7281",
"meta:descriptionId": "content-details##xdm:placement##description##44101"
},
"xdm:components": {
"type": "array",
"description": "The components of the content representing the decision option, including all their language variants. Specific components are found by 'dx:format', 'dc:subject' and 'dc:language' or a combination thereof. This metadata is used to locate or represent the content that is associated with an offer and integrate it according to the placement contract.",
"items": {
"$ref": "https://ns.adobe.com/experience/decisioning/content-component-details"
},
"meta:descriptionId": "content-details##xdm:components##description##54801"
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/content-details"
}
],
"meta:status": "stable",
"meta:titleId": "content-details##title##42641",
"meta:descriptionId": "content-details##description##79141",
"examples": [
{
"https://ns.adobe.com/experience/decisioning/placement": "uri:xcore:placement-0001",
"https://ns.adobe.com/experience/decisioning/components": [
{
"@type": "https://ns.adobe.com/experience/offer-management/content-component-text-template",
"dc:format": "text/x-handlebars-template",
"dc:language": [
"en",
"en-AU",
"en-CA",
"en-GB",
"en-IN",
"en-IE",
"en-MT",
"en-NZ",
"en-PH",
"en-SG",
"en-ZA"
],
"repo:name": "expiration_message_en",
"https://ns.adobe.com/experience/decisioning/content": "Dear Madam {{profile.person.lastName}}, the offer expires on 12/6/2018"
},
{
"@type": "https://ns.adobe.com/experience/offer-management/content-component-text-template",
"dc:format": "text/x-handlebars-template",
"dc:language": [
"en-US"
],
"https://ns.adobe.com/experience/decisioning/content": "Hi {{profile.person.firstName}}, your offer expires on 6/12/2018"
},
{
"@type": "https://ns.adobe.com/experience/offer-management/content-component-text-template",
"dc:format": "text/x-handlebars-template",
"dc:language": [
"es"
],
"https://ns.adobe.com/experience/decisioning/content": "Estimada señora {{profile.person.lastName}}: La oferta vence el 12/6/2018"
}
]
},
{
"https://ns.adobe.com/experience/decisioning/placement": "uri:xcore:placement-0002",
"https://ns.adobe.com/experience/decisioning/components": [
{
"@type": "https://ns.adobe.com/experience/offer-management/content-component-imagelink",
"dc:format": "image/png",
"dc:language": [
"en"
],
"repo:name": "holidayOffer.2018.png",
"repo:id": "urn:aaid:sc:VA7:6dc33479-13ca-4b19-b25d-c805eff8a69e",
"repo:resolveURL": "https://platform-cs-stage.adobe.io/content/directory/resolve?asset_id="urn:aaid:sc:VA7:6dc33479-13ca-4b19-b25d-c805eff8a69e"",
"https://ns.adobe.com/experience/decisioning/deliveryURL": "https://www.mycompany.com/product?trackId=12345",
"https://ns.adobe.com/experience/decisioning/linkURL": "https://www.mycompany.com/product?trackId=12345"
}
]
},
{
"https://ns.adobe.com/experience/decisioning/placement": "uri:xcore:placement-0003",
"https://ns.adobe.com/experience/decisioning/components": [
{
"@type": "https://ns.adobe.com/experience/offer-management/content-component-html",
"dc:format": "text/html",
"dc:language": [
"de"
],
"repo:name": "widget_quickbooking.html",
"repo:id": "urn:aaid:sc:NLD2:0567c1d6-4fdc-4541-b736-f62934fcb5fc",
"repo:resolveURL": "https://platform-cs-stage.adobe.io/content/directory/resolve?asset_id="urn:aaid:sc:NLD2:0567c1d6-4fdc-4541-b736-f62934fcb5fc""
}
]
}
]
}