-
Notifications
You must be signed in to change notification settings - Fork 45
/
image_operation.json
72 lines (69 loc) · 2.75 KB
/
image_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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"$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/image_operation.json",
"description": "An operation on an image",
"type": "object",
"allOf": [{
"properties": {
"type": {
"description": "Identifies this as an ANS operation",
"type": "string",
"enum": [ "image-operation" ]
},
"operation": {
"type": "string",
"description": "The identifier of the operation being performed",
"enum": [ "insert", "update", "delete", "publish", "unpublish" ]
},
"date": {
"description": "When the operation should be considered performed",
"type": "string",
"format": "date-time"
},
"display_date":{
"description": "The RFC3339-formatted dated time of the most recent date the image was (re)displayed on a public site.",
"type": "string",
"format": "date-time"
},
"publish_date":{
"description": "When the image was published.",
"type": "string",
"format": "date-time"
},
"submit_date": {
"description": "When this operation was submitted to Content API. Used for latency checking.",
"type":"string",
"format": "date-time"
},
"_id": {
"type": "string",
"description": "The id of the image being operated on"
},
"organization_id": {
"type": "string",
"description": "The id of the organization"
},
"version": {
"type": "string",
"description": "The version of ANS this item is written in"
},
"priority": {
"type": "string",
"title": "Priority",
"description": "The priority identifier of this operation. This is used by downstream consumers to make decisions about optimization. The value 'standard' indicates an operation generated from a UI or live update. The value 'ingestion' indicates an operation generated by a migration script or background import.",
"enum": [ "standard", "ingestion" ]
},
"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 image being inserted/updated/deleted",
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.0/image.json"
}
},
"required": [ "type", "operation", "_id", "organization_id" ]
}]
}