-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauditable.schema.json
57 lines (57 loc) · 2.11 KB
/
auditable.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
{
"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/common/auditable",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Audit Trail",
"type": "object",
"meta:extends": ["http://ns.adobe.com/adobecloud/core/1.0"],
"meta:abstract": true,
"description":
"Inheriting this schema using `allOf` indicates that the data record is auditable, i.e. it can be determined when the record has last been modified and by whom.",
"definitions": {
"auditlog": {
"properties": {
"xdm:repositoryCreatedBy": {
"title": "Created by User Identifier",
"type": "string",
"description": "User id who has created the entity.\n"
},
"xdm:repositoryLastModifiedBy": {
"title": "Modified by User Identifier",
"type": "string",
"description":
"User id who last modified the entity.\nAt creation time, `modifiedByUser` is set as `createdByUser`.\n"
},
"xdm:createdByBatchID": {
"title": "Created by Batch Identifier",
"type": "string",
"format": "uri",
"description":
"The Data Set Files in Catalog Services which has been originating the creation of the entity.\n"
},
"xdm:modifiedByBatchID": {
"title": "Modified by Batch Identifier",
"type": "string",
"format": "uri",
"description":
"The last Data Set Files in Catalog Services which has modified the entity.\nAt creation time, `modifiedByBatchID` is set as `createdByBatchID`.\n"
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/auditlog"
},
{
"$ref":
"http://ns.adobe.com/adobecloud/core/1.0#/definitions/date-properties"
}
],
"meta:status": "experimental"
}