-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduct.schema.json
181 lines (181 loc) · 6.58 KB
/
product.schema.json
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
{
"meta:license": [
"Copyright 2017 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/context/product",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Product",
"type": "object",
"description":
"XDM product variant, master product and key attributes of product in the product catalog.",
"definitions": {
"product": {
"properties": {
"@id": {
"title": "Identifier",
"type": "string",
"format": "uri",
"description":
"The internal unique ID of the variant in the commerce backend system."
},
"xdm:SKU": {
"title": "SKU",
"type": "string",
"description":
"The unique SKU (Stock Keeping Unit) of the variant assigned by the vendor."
},
"xdm:name": {
"title": "Name",
"type": "string",
"description": "The name of the product."
},
"schema:description": {
"title": "Description",
"type": "string",
"description": "The localized description of the product."
},
"xdm:category": {
"title": "Category",
"type": "string",
"description":
"Primary categorization (category) name of the Master/variant."
},
"xdm:department": {
"title": "Department",
"type": "string",
"description": "Primary department the product is associated with."
},
"xdm:brand": {
"title": "Brand",
"type": "string",
"description": "Brand of the Master/Variant products."
},
"xdm:masterProductID": {
"title": "Master Product Identifier",
"type": "string",
"format": "uri",
"description":
"The internal unique ID of the product in the commerce backend system."
},
"xdm:masterProductSKU": {
"title": "Master Product SKU",
"type": "string",
"description":
"The unique SKU (Stock Keeping Unit) of the master product assigned by the vendor or manufacturer(to update)."
},
"xdm:masterProductName": {
"title": "Master Product Name",
"type": "string",
"description": "The localized name of the product."
},
"xdm:masterProductDescription": {
"title": "Master Product Description",
"type": "string",
"description": "The description of the product."
},
"xdm:fabrication": {
"title": "Fabrication",
"type": "string",
"description": "Primary material the product is constructed with."
},
"xdm:gender": {
"title": "Gender",
"type": "string",
"description": "Gender the product is marketed to.",
"meta:enum": {
"male": "For men",
"female": "For women",
"unisex": "For both men and women",
"unknown": "Unknown"
}
},
"xdm:size": {
"title": "Size",
"type": "number",
"description": "Standard product size for the product."
},
"xdm:unitOfMeasure": {
"title": "Unit of Measure",
"type": "string",
"description":
"Standard unit of measure of the variant. Denotes the units for the size measurement."
},
"xdm:countryOfOrigin": {
"title": "Country of Origin",
"type": "string",
"pattern": "^[A-Z]{2}$",
"description":
"The two-character [ISO 3166-1 alpha-2](https://datahub.io/core/country-list) code for the country of origin of the product as defined by customs requirements."
},
"xdm:COGS": {
"title": "Cost of Good Sold",
"type": "number",
"description": "Cost of Good Sold. In the `currencyCode` currency."
},
"xdm:listPrice": {
"title": "List Price",
"type": "number",
"description":
"Default price of the product before sales and discounting. In the `currencyCode` currency."
},
"xdm:currencyCode": {
"title": "Currency Code",
"type": "string",
"examples": ["USD", "EUR"],
"pattern": "^[A-Z]{3}$",
"description":
"The ISO 4217 alphabetic currency code used for cost and pricing, including `listPrice` and `COGS`."
},
"xdm:originalSaleDate": {
"title": "Original Sale Date",
"type": "string",
"format": "date",
"description":
"First date the product was made available for sale. The time using RFC3339 with a stated timezone offset such as \"2001-07-04T12:08:56-07:00\". An example formatting pattern is \"yyyy-MM-dd'T'HH:mm:ssXXX\"."
},
"xdm:productCreateDate": {
"title": "Product Creation Date",
"format": "date",
"type": "string",
"description":
"The date when this product variant was created. The time using RFC3339 with a stated timezone offset such as \"2001-07-04T12:08:56-07:00\". An example formatting pattern is \"yyyy-MM-dd'T'HH:mm:ssXXX\"."
},
"xdm:productLastModified": {
"title": "Product Last Modified",
"format": "date",
"type": "string",
"description":
"The date when this product variant was last modified. The time using RFC3339 with a stated timezone offset such as \"2001-07-04T12:08:56-07:00\". An example formatting pattern is \"yyyy-MM-dd'T'HH:mm:ssXXX\"."
},
"xdm:productURL": {
"title": "Product URL",
"type": "string",
"description":
"The URL for the primary Product View of the product variant page."
},
"xdm:manufacturerName": {
"title": "Manufacturer Name",
"type": "string",
"description": "Manufacturer of the product."
},
"xdm:supplierName": {
"title": "Supplier Name",
"type": "string",
"description": "The distributor of the product."
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context"
},
{
"$ref": "#/definitions/product"
}
],
"meta:status": "experimental"
}