-
Notifications
You must be signed in to change notification settings - Fork 45
/
clavis_operation.json
82 lines (80 loc) · 2.91 KB
/
clavis_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
73
74
75
76
77
78
79
80
81
82
{
"$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/clavis_operation.json",
"description": "An operation to add Clavis information to a story.",
"type": "object",
"allOf": [{
"properties": {
"type": {
"description": "Identifies this as an ANS operation",
"type": "string",
"enum": [ "clavis-operation" ]
},
"operation": {
"type": "string",
"description": "The identifier of the operation being performed",
"enum": [ "update" ]
},
"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"
},
"branch": {
"type": "string",
"description": "The name of the branch within Story API that this operation occurs on, if any"
},
"published": {
"type": "boolean",
"description": "Identifies this item as published or not"
},
"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"
},
"keywords": {
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.0/utils/keyword.json"
},
"description": "A list of keywords."
},
"named_entities": {
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.0/utils/named_entity.json"
},
"description": "A list of named entities."
},
"topics": {
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.0/utils/topic.json"
},
"description": "A list of topics."
},
"auxiliaries": {
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.0/utils/auxiliary.json"
},
"description": "A list of auxiliaries."
}
},
"required": [ "type", "operation", "id", "organization_id", "branch", "published" ]
}]
}