-
Notifications
You must be signed in to change notification settings - Fork 1
/
changeset.schema.json
73 lines (73 loc) · 2.98 KB
/
changeset.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/mixins/changeset",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Change Set",
"type": "object",
"meta:extensible": true,
"meta:abstract": true,
"meta:intendedToExtend": [],
"description": "Schema for communicating row level changes to and from datasets.",
"definitions": {
"changeset": {
"properties": {
"xdm:changeRequest": {
"type": "object",
"title": "Change Request",
"description": "Structure to store control data for row-level changes.",
"properties": {
"xdm:type": {
"title": "Change Request Type",
"description": "Value signaling the type of change.",
"type": "string",
"enum": [
"i",
"u",
"d",
"m"
],
"meta:enum": {
"i": "insert",
"u": "update",
"d": "delete",
"m": "merge"
},
"meta:titleId": "changeset##xdm:type##title##98201",
"meta:descriptionId": "changeset##xdm:type##description##43531"
},
"xdm:reason": {
"title": "Change Request Reason",
"description": "Optional value signaling the reason for this change (e.g. GDPR).",
"type": "string",
"meta:titleId": "changeset##xdm:reason##title##36831",
"meta:descriptionId": "changeset##xdm:reason##description##66461"
}
},
"meta:titleId": "changeset##xdm:changeRequest##title##79971",
"meta:descriptionId": "changeset##xdm:changeRequest##description##65511"
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/changeset"
}
],
"meta:status": "experimental",
"meta:titleId": "changeset##title##18261",
"meta:descriptionId": "changeset##description##3151",
"examples": [
{
"xdm:changeRequest": {
"xdm:type": "i",
"xdm:reason": "GDPR"
}
}
]
}