-
Notifications
You must be signed in to change notification settings - Fork 45
/
site_operation.json
50 lines (48 loc) · 1.74 KB
/
site_operation.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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.0/site_operation.json",
"description": "An operation on a site",
"type": "object",
"allOf": [{
"properties": {
"type": {
"description": "Identifies this as an ANS operation",
"type": "string",
"enum": [ "site-service" ]
},
"operation": {
"type": "string",
"description": "The identifier of the operation being performed",
"enum": [ "insert", "update", "delete" ]
},
"date": {
"description": "When the operation should be considered performed",
"type": "string",
"format": "date-time"
},
"id": {
"type": "string",
"description": "The id of the item being operated"
},
"organization_id": {
"type": "string",
"description": "The id of the organization"
},
"version": {
"type": "string",
"description": "The version of ANS this item is written in"
},
"priority": {
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.0/traits/trait_priority.json"
},
"app_name": {
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.0/traits/trait_app_name.json"
},
"body": {
"description": "The object being inserted/updated/deleted",
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.5.3/utils/author.json"
}
},
"required": [ "type", "operation", "id", "organization_id" ]
}]
}