-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevice.schema.json
98 lines (98 loc) · 3.78 KB
/
device.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
{
"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/device",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Device",
"type": "object",
"meta:extensible": true,
"description":
"An identified device that is an application or browser instance that is trackable across sessions, normally by cookies.",
"definitions": {
"device": {
"properties": {
"xdm:typeID": {
"title": "Type Identifier",
"type": "string",
"description":
"An identifier for the device. This may be an identifier from Device Atlas or another service that identifies the hardware that is being used."
},
"xdm:typeIDService": {
"title": "Type Identifier Service",
"type": "string",
"format": "uri",
"description":
"The namespace of the service that is used to identify the device type.",
"meta:enum": {
"https://ns.adobe.com/xdm/external/deviceatlas": "Device Atlas",
"https://ns.adobe.com/xdm/external/adobecampaign": "Adobe Campaign"
}
},
"xdm:type": {
"title": "Type",
"type": "string",
"description": "Type of device being tracked.",
"meta:enum": {
"mobile": "Mobile",
"tablet": "Tablet",
"desktop": "Desktop",
"ereader": "E-Reader",
"gaming": "Gaming Console",
"television": "Television",
"settop": "Set-top Box",
"mediaplayer": "Media Player"
}
},
"xdm:manufacturer": {
"title": "Manufacturer",
"type": "string",
"description":
"The name of the organization who owns the design and creation of the Device. For example, 'Apple' is the manufacturer of the iPhone."
},
"xdm:model": {
"title": "Model",
"type": "string",
"description":
"The name of the model for the Device. This is the common, human-readable or marketing name for the Device. The 'iPhone 6S' is a particular model of mobile phone."
},
"xdm:modelNumber": {
"title": "Model Number",
"type": "string",
"description":
"The unique model number designation assigned by the manufacturer for this Device. Model numbers are not versions, but unique identifiers that identify a particular model configuration. While the model for a particular phone might be 'iPhone 6S' the model number would be 'A1633', or 'A1634' based on configuration at the time of sale."
},
"xdm:screenHeight": {
"title": "Screen Height",
"type": "integer",
"description":
"The number of veritcal pixels of the device's active display in its default orientation."
},
"xdm:screenWidth": {
"title": "Screen Width",
"type": "integer",
"description":
"The number of horizontal pixels of the device's active display in its default orientation."
},
"xdm:colorDepth": {
"title": "Color Depth",
"type": "integer",
"description":
"The number of colors the display is able to represent."
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context"
},
{
"$ref": "#/definitions/device"
}
],
"meta:status": "stabilizing"
}