forked from adobe/xdm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcart.schema.json
More file actions
48 lines (48 loc) · 1.78 KB
/
cart.schema.json
File metadata and controls
48 lines (48 loc) · 1.78 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
{
"meta:license": [
"Copyright 2022 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/"
],
"$id": "https://ns.adobe.com/xdm/datatypes/cart",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Cart",
"type": "object",
"description": "Cart-specific properties",
"definitions": {
"cart": {
"properties": {
"xdm:cartID": {
"title": "Cart ID",
"type": "string",
"description": "Unique identifier assigned by the seller for the cart.",
"meta:titleId": "cart##xdm:cartID##title##16131",
"meta:descriptionId": "cart##xdm:cartID##description##66661"
},
"xdm:cartSource": {
"title": "Cart Source",
"type": "string",
"description": "Where one or more products was added to the cart from.",
"meta:titleId": "cart##xdm:cartSource##title##55321",
"meta:descriptionId": "cart##xdm:cartSource##description##1551"
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/cart"
}
],
"meta:status": "experimental",
"meta:createdDate": "2022-03-02",
"meta:titleId": "cart##title##89681",
"meta:descriptionId": "cart##description##25591",
"examples": [
{
"xdm:cartID": "abc123",
"xdm:cartSource": "detail page"
}
]
}