This repository has been archived by the owner on Nov 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
corona_page_complex.jsonnet
81 lines (78 loc) · 2.04 KB
/
corona_page_complex.jsonnet
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
(import "shared/default_format.jsonnet") + {
document_type: "corona_page",
base_path: "/coronavirus",
rendering_app: "collections",
definitions: {
details: {
type: "object",
additionalProperties: true,
properties: {
header_section: {
description: "Header section of page for key messages",
type: "array",
items: {
type: "object",
additionalProperties: true,
required: [
"top_box",
"guidance"
]
properties: {
top_box: {
description: "currently 'stay at home' message block",
type: "array",
additionalProperties: true,
items: {
type: "object",
additionalProperties: true,
required: [
"pretext",
"list"
],
properties: {
pretext: {
type: "string",
},
list: {
description: "An ordered list of key messages"
type: "array",
items: {
type: "string"
},
}
}
}
},
guidance: {
description: "Guidance links"
},
},
},
},
announcements: {
description: "The links for the announcement section",
type: "array",
items: {
description: "Announcements",
type: "object",
additionalProperties: true,
required: [
"text",
"href",
],
properties: {
text: {
type: "string",
},
href: {
type: "string",
}
}
}
},
sections: {
}
}
}
}
}