-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathnews_article.jsonnet
More file actions
71 lines (71 loc) · 2.37 KB
/
news_article.jsonnet
File metadata and controls
71 lines (71 loc) · 2.37 KB
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
(import "shared/default_format.jsonnet") + {
document_type: [
"press_release",
"news_story",
"government_response",
"world_news_story",
],
definitions: (import "shared/definitions/_whitehall.jsonnet") + {
details: {
type: "object",
additionalProperties: false,
required: [
"body",
],
properties: {
attachments: {
description: "An ordered list of asset links",
type: "array",
items: {
"$ref": "#/definitions/file_attachment_asset",
},
},
body: {
"$ref": "#/definitions/body",
},
images: {
type: "array",
items: {
"$ref": "#/definitions/image_asset",
}
},
first_public_at: {
"$ref": "#/definitions/first_public_at",
},
change_history: {
"$ref": "#/definitions/change_history",
},
tags: {
"$ref": "#/definitions/tags",
},
emphasised_organisations: {
"$ref": "#/definitions/emphasised_organisations",
},
government: {
"$ref": "#/definitions/government",
},
political: {
"$ref": "#/definitions/political",
},
},
},
},
links: (import "shared/base_links.jsonnet") + {
government: {
description: "The government associated with this document",
maxItems: 1,
},
related_policies: "",
topical_events: "The topical events this content item relates to.",
world_locations: "The world locations this content item is about.",
worldwide_organisations: "The worldwide organisations associated with this content item.",
roles: "Government roles that are associated with this document, typically the role part of a role association",
people: "People that are associated with this document, typically the person part of a role association",
},
edition_links: (import "shared/whitehall_edition_links.jsonnet") + {
roles: "Government roles that are associated with this document, typically the role part of a role association",
people: "People that are associated with this document, typically the person part of a role association",
world_locations: "The world locations this content item is about.",
worldwide_organisations: "The worldwide organisations associated with this content item.",
}
}