/
dim-segment.schema.json
73 lines (73 loc) · 2.57 KB
/
dim-segment.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
{
"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/context/dim-segment",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Segment Dimension",
"type": "object",
"meta:extensible": false,
"meta:abstract": false,
"description": "This is the dimension schema for a segment definition which includes required fields like segment ID and name of segment.",
"meta:extends": ["https://ns.adobe.com/xdm/data/record"],
"definitions": {
"segment": {
"properties": {
"xdm:segment": {
"type": "object",
"description": "Segment Dimension and its properties.",
"properties": {
"xdm:ID": {
"title": "Segment Identifier",
"type": "string",
"description": "Unique identifier of the segment."
},
"xdm:name": {
"title": "Segment name",
"type": "string",
"description": "Name of the segment."
},
"xdm:description": {
"title": "Segment description",
"type": "string",
"description": "Description of the segment."
},
"xdm:source": {
"title": "Segment Source",
"type": "string",
"description": "Segment source indicating whether the segment was sent from an internal or external source."
},
"xdm:namespace": {
"title": "Segment Namespace",
"type": "string",
"description": "Segment namespace."
},
"xdm:version": {
"title": "Segment version",
"type": "string",
"description": "Version of the segment."
},
"xdm:status": {
"type": "string",
"title": "Segment status",
"description": "Current status of segment from external system normalized to active, inactive, deleted, draft or revoked.",
"enum": ["ACTIVE", "INACTIVE", "DELETED", "DRAFT", "REVOKED"]
}
}
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/data/record"
},
{
"$ref": "#/definitions/segment"
}
],
"meta:status": "stable"
}