-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathplatform_pitch_operation.json
42 lines (42 loc) · 1.46 KB
/
platform_pitch_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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/washingtonpost/ans-schema/blob/master/src/main/resources/schema/ans/0.10.0/platform_pitch_operation.json",
"description": "An operation to add or update a story's pitch to a WebSked platform.",
"type": "object",
"allOf": [{
"properties": {
"type": {
"description": "Identifies this as an ANS operation",
"type": "string",
"enum": [ "platform-pitch-operation" ]
},
"operation": {
"type": "string",
"description": "The identifier of the operation being performed",
"enum": [ "create", "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"
},
"version": {
"type": "string",
"description": "The version of ANS this item is written in"
},
"body": {
"description": "The object being inserted/updated",
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.0/traits/trait_platform_pitch.json"
}
},
"required": [ "type", "operation", "id", "organization_id", "body" ]
}]
}