@adobe/helix-shared-config 1.7.21 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/package.json +12 -9
- package/src/config-wrapper.js +0 -6
- package/src/index.js +0 -12
- package/src/Condition.js +0 -573
- package/src/ConfigValidator.js +0 -95
- package/src/DataEmbedValidator.js +0 -51
- package/src/DynamicRedirect.js +0 -125
- package/src/HelixConfig.js +0 -133
- package/src/MarkupConfig.js +0 -35
- package/src/Origin.js +0 -159
- package/src/Performance.js +0 -80
- package/src/Redirect.js +0 -64
- package/src/RedirectConfig.js +0 -64
- package/src/RedirectRuleHandler.js +0 -46
- package/src/Static.js +0 -119
- package/src/Strain.js +0 -332
- package/src/Strains.js +0 -68
- package/src/schemas/conditions.schema.json +0 -140
- package/src/schemas/config.description.md +0 -7
- package/src/schemas/config.example.1.json +0 -26
- package/src/schemas/config.schema.json +0 -44
- package/src/schemas/data-embed-response.schema.json +0 -40
- package/src/schemas/giturl.schema.json +0 -62
- package/src/schemas/markup.schema.json +0 -22
- package/src/schemas/markupconfig.schema.json +0 -38
- package/src/schemas/markupmapping.description.md +0 -242
- package/src/schemas/markupmapping.schema.json +0 -122
- package/src/schemas/origin.description.md +0 -5
- package/src/schemas/origin.schema.json +0 -86
- package/src/schemas/performance.schema.json +0 -210
- package/src/schemas/proxystrain.description.md +0 -20
- package/src/schemas/proxystrain.schema.json +0 -87
- package/src/schemas/redirect.schema.json +0 -34
- package/src/schemas/redirectrule.schema.json +0 -46
- package/src/schemas/redirects.description.md +0 -1
- package/src/schemas/redirects.schema.json +0 -41
- package/src/schemas/row.schema.json +0 -23
- package/src/schemas/runtimestrain.schema.json +0 -144
- package/src/schemas/sheet.schema.json +0 -57
- package/src/schemas/staticgiturl.schema.json +0 -80
- package/src/schemas/strains.schema.json +0 -39
- package/src/schemas/vanity.schema.json +0 -38
- package/src/schemas/version-lock.description.md +0 -3
- package/src/schemas/version-lock.schema.json +0 -35
- package/src/schemas/workbook.schema.json +0 -49
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta:license": [
|
|
3
|
-
"Copyright 2019 Adobe. All rights reserved.",
|
|
4
|
-
"This file is licensed to you under the Apache License, Version 2.0 (the \"License\");",
|
|
5
|
-
"you may not use this file except in compliance with the License. You may obtain a copy",
|
|
6
|
-
"of the License at http://www.apache.org/licenses/LICENSE-2.0",
|
|
7
|
-
"",
|
|
8
|
-
"Unless required by applicable law or agreed to in writing, software distributed under",
|
|
9
|
-
"the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS",
|
|
10
|
-
"OF ANY KIND, either express or implied. See the License for the specific language",
|
|
11
|
-
"governing permissions and limitations under the License."
|
|
12
|
-
],
|
|
13
|
-
"$id": "https://ns.adobe.com/helix/shared/performance",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Performance",
|
|
16
|
-
"type": "object",
|
|
17
|
-
"meta:status": "stabilizing",
|
|
18
|
-
"description": "Performance testing details.",
|
|
19
|
-
"additionalProperties": false,
|
|
20
|
-
"properties": {
|
|
21
|
-
"device": {
|
|
22
|
-
"description": "Testing device",
|
|
23
|
-
"enum": [
|
|
24
|
-
"",
|
|
25
|
-
"MotorolaMotoG4",
|
|
26
|
-
"iPhone5",
|
|
27
|
-
"iPhone6",
|
|
28
|
-
"iPhone6Plus",
|
|
29
|
-
"iPhone7",
|
|
30
|
-
"iPhone8",
|
|
31
|
-
"Nexus5X",
|
|
32
|
-
"Nexus6P",
|
|
33
|
-
"GalaxyS5",
|
|
34
|
-
"iPad",
|
|
35
|
-
"iPadPro"
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
"location": {
|
|
39
|
-
"description": "Testing location",
|
|
40
|
-
"enum": [
|
|
41
|
-
"",
|
|
42
|
-
"NorthVirginia",
|
|
43
|
-
"Frankfurt",
|
|
44
|
-
"Sydney",
|
|
45
|
-
"Ohio",
|
|
46
|
-
"California",
|
|
47
|
-
"Oregon",
|
|
48
|
-
"Canada",
|
|
49
|
-
"Ireland",
|
|
50
|
-
"Tokyo",
|
|
51
|
-
"Seoul",
|
|
52
|
-
"Singapore",
|
|
53
|
-
"Mumbai",
|
|
54
|
-
"SaoPaulo",
|
|
55
|
-
"London"
|
|
56
|
-
]
|
|
57
|
-
},
|
|
58
|
-
"connection": {
|
|
59
|
-
"description": "Testing connection",
|
|
60
|
-
"enum": [
|
|
61
|
-
"",
|
|
62
|
-
"regular2G",
|
|
63
|
-
"good2G",
|
|
64
|
-
"slow3G",
|
|
65
|
-
"regular3G",
|
|
66
|
-
"good3G",
|
|
67
|
-
"emergingMarkets",
|
|
68
|
-
"regular4G",
|
|
69
|
-
"LTE",
|
|
70
|
-
"dsl",
|
|
71
|
-
"wifi",
|
|
72
|
-
"cable"
|
|
73
|
-
]
|
|
74
|
-
},
|
|
75
|
-
"lighthouse-seo-score": {
|
|
76
|
-
"type": "number",
|
|
77
|
-
"description": "Lighthouse SEO Score"
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
"lighthouse-best-practices-score": {
|
|
81
|
-
"type": "number",
|
|
82
|
-
"description": "Lighthouse Best Practices Score"
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
"lighthouse-accessibility-score": {
|
|
86
|
-
"type": "number",
|
|
87
|
-
"description": "Lighthouse Accessibility Score"
|
|
88
|
-
},
|
|
89
|
-
|
|
90
|
-
"lighthouse-performance-score": {
|
|
91
|
-
"type": "number",
|
|
92
|
-
"description": "Lighthouse Performance Score"
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
"lighthouse-pwa-score": {
|
|
96
|
-
"type": "number",
|
|
97
|
-
"description": "Lighthouse Progressive Web App Score"
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
"js-parse-compile": {
|
|
101
|
-
"type": "number",
|
|
102
|
-
"description": "JS Parse & Compile"
|
|
103
|
-
},
|
|
104
|
-
"dom-size": { "type": "number", "description": "DOM Element Count" },
|
|
105
|
-
"visually_complete_85": {
|
|
106
|
-
"type": "number",
|
|
107
|
-
"description": "85% Visually Complete"
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
"visually_complete": {
|
|
111
|
-
"type": "number",
|
|
112
|
-
"description": "Visually Complete"
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
"consistently-interactive": {
|
|
116
|
-
"type": "number",
|
|
117
|
-
"description": "Time to Interactive"
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
"first-interactive": { "type": "number", "description": "First CPU Idle" },
|
|
121
|
-
|
|
122
|
-
"time-to-first-byte": {
|
|
123
|
-
"type": "number",
|
|
124
|
-
"description": "Time to First Byte"
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
"estimated-input-latency": {
|
|
128
|
-
"type": "number",
|
|
129
|
-
"description": "Estimated input latency"
|
|
130
|
-
},
|
|
131
|
-
"speed_index": { "type": "number", "description": "Speed Index" },
|
|
132
|
-
"first-meaningful-paint": {
|
|
133
|
-
"type": "number",
|
|
134
|
-
"description": "First Meaningful Paint"
|
|
135
|
-
},
|
|
136
|
-
|
|
137
|
-
"first-contentful-paint": {
|
|
138
|
-
"type": "number",
|
|
139
|
-
"description": "First Contentful Paint"
|
|
140
|
-
},
|
|
141
|
-
"firstRender": { "type": "number", "description": "First Paint" },
|
|
142
|
-
"image_body_size_in_bytes": {
|
|
143
|
-
"type": "number",
|
|
144
|
-
"description": "Total Image size in bytes"
|
|
145
|
-
},
|
|
146
|
-
|
|
147
|
-
"image_size_in_bytes": {
|
|
148
|
-
"type": "number",
|
|
149
|
-
"description": "Total Image transferred"
|
|
150
|
-
},
|
|
151
|
-
|
|
152
|
-
"font_body_size_in_bytes": {
|
|
153
|
-
"type": "number",
|
|
154
|
-
"description": "Total Webfont size in bytes"
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
"font_size_in_bytes": {
|
|
158
|
-
"type": "number",
|
|
159
|
-
"description": "Total Webfont transferred"
|
|
160
|
-
},
|
|
161
|
-
|
|
162
|
-
"js_body_size_in_bytes": {
|
|
163
|
-
"type": "number",
|
|
164
|
-
"description": "Total JavaScript size in bytes"
|
|
165
|
-
},
|
|
166
|
-
|
|
167
|
-
"js_size_in_bytes": {
|
|
168
|
-
"type": "number",
|
|
169
|
-
"description": "Total JavaScript Transferred"
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
"css_body_size_in_bytes": {
|
|
173
|
-
"type": "number",
|
|
174
|
-
"description": "Total CSS size in bytes"
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
"css_size_in_bytes": {
|
|
178
|
-
"type": "number",
|
|
179
|
-
"description": "Total CSS transferred"
|
|
180
|
-
},
|
|
181
|
-
|
|
182
|
-
"html_body_size_in_bytes": {
|
|
183
|
-
"type": "number",
|
|
184
|
-
"description": "Total HTML size in bytes"
|
|
185
|
-
},
|
|
186
|
-
|
|
187
|
-
"html_size_in_bytes": {
|
|
188
|
-
"type": "number",
|
|
189
|
-
"description": "Total HTML transferred"
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
"page_wait_timing": { "type": "number", "description": "Response time" },
|
|
193
|
-
|
|
194
|
-
"page_size_in_bytes": {
|
|
195
|
-
"type": "number",
|
|
196
|
-
"description": "Total Page transferred"
|
|
197
|
-
},
|
|
198
|
-
|
|
199
|
-
"page_body_size_in_bytes": {
|
|
200
|
-
"type": "number",
|
|
201
|
-
"description": "Total Page size in bytes"
|
|
202
|
-
},
|
|
203
|
-
|
|
204
|
-
"asset_count": { "type": "number", "description": "Number of requests" },
|
|
205
|
-
|
|
206
|
-
"onload": { "type": "number", "description": "onLoad" },
|
|
207
|
-
|
|
208
|
-
"oncontentload": { "type": "number", "description": "onContentLoad" }
|
|
209
|
-
}
|
|
210
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
A proxy strain is a strain that serves content from another web server, acting as a pure proxy.
|
|
2
|
-
|
|
3
|
-
## How are Proxy Strains configured?
|
|
4
|
-
|
|
5
|
-
Add an `origin` property to your strain object in the `helix-config.yaml`. The `origin` property can be either the base URL of the web server that you want to serve content from
|
|
6
|
-
or a more complex configuration object, described in the [Origin schema](origin.schema.md).
|
|
7
|
-
|
|
8
|
-
Most of the other properties that can be used to describe other strains (i.e. [Runtime strains](runtimestrain.schema.md)) do not work for Proxy strains and are not just irrelevant, but also forbidden.
|
|
9
|
-
|
|
10
|
-
## What are useful scenarios for Proxy Strains?
|
|
11
|
-
|
|
12
|
-
You can use Proxy Strains in a number of scenarios:
|
|
13
|
-
|
|
14
|
-
- in order to integrate non-Helix web applications that should run on the same hostname
|
|
15
|
-
- in order to serve legacy content from an old website as a fallback
|
|
16
|
-
- in order to enable a gradual migration of an existing site to Helix
|
|
17
|
-
|
|
18
|
-
A good pattern for migrating to Project Helix is to define one proxy strain as the `default` that serves the old site from the current backend.
|
|
19
|
-
|
|
20
|
-
Over time, add more and more runtime strains that are powered by Helix and adjust the `url` and `conditions` so that they receive more traffic.
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta:license": [
|
|
3
|
-
"Copyright 2019 Adobe. All rights reserved.",
|
|
4
|
-
"This file is licensed to you under the Apache License, Version 2.0 (the \"License\");",
|
|
5
|
-
"you may not use this file except in compliance with the License. You may obtain a copy",
|
|
6
|
-
"of the License at http://www.apache.org/licenses/LICENSE-2.0",
|
|
7
|
-
"",
|
|
8
|
-
"Unless required by applicable law or agreed to in writing, software distributed under",
|
|
9
|
-
"the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS",
|
|
10
|
-
"OF ANY KIND, either express or implied. See the License for the specific language",
|
|
11
|
-
"governing permissions and limitations under the License."
|
|
12
|
-
],
|
|
13
|
-
"$id": "https://ns.adobe.com/helix/shared/proxystrain",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Proxy Strain",
|
|
16
|
-
"type": "object",
|
|
17
|
-
"meta:status": "stabilizing",
|
|
18
|
-
"description": "A strain is a combination of code and content that enables the creation of a digital experience. Strains can be used to create language variants of websites, A/B tests, personalization, or to aggregate content from multiple sources",
|
|
19
|
-
"additionalProperties": false,
|
|
20
|
-
"properties": {
|
|
21
|
-
"name": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"description": "Name of the strain"
|
|
24
|
-
},
|
|
25
|
-
"origin": {
|
|
26
|
-
"description": "Origin backend for proxy strains.",
|
|
27
|
-
"anyOf": [
|
|
28
|
-
{
|
|
29
|
-
"type": "string",
|
|
30
|
-
"format": "uri"
|
|
31
|
-
},
|
|
32
|
-
{"$ref": "https://ns.adobe.com/helix/shared/origin"}
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
"sticky": {
|
|
36
|
-
"description": "Sticky strains are not re-evaluated on every request. As soon as a visitor is determined to match a sticky strain, a session cookie will be set to keep the user in the strain.",
|
|
37
|
-
"type": "boolean"
|
|
38
|
-
},
|
|
39
|
-
"url": {
|
|
40
|
-
"description": "URL condition.\n\n**Warning**: this property has been deprecated in favour of adding the `url` to the `condition` property.",
|
|
41
|
-
"type": "string",
|
|
42
|
-
"format": "uri",
|
|
43
|
-
"meta:status": "deprecated"
|
|
44
|
-
},
|
|
45
|
-
"urls": {
|
|
46
|
-
"description": "List of known URLs for testing this strain",
|
|
47
|
-
"type": "array",
|
|
48
|
-
"items": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"format": "uri"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"condition": {
|
|
54
|
-
"description": "VLC condition that controls that can optionally activate this strain.",
|
|
55
|
-
"oneOf": [
|
|
56
|
-
{
|
|
57
|
-
"type": "string"
|
|
58
|
-
},
|
|
59
|
-
{"$ref": "https://ns.adobe.com/helix/shared/conditions"}
|
|
60
|
-
]
|
|
61
|
-
},
|
|
62
|
-
"perf": {
|
|
63
|
-
"$ref": "https://ns.adobe.com/helix/shared/performance"
|
|
64
|
-
},
|
|
65
|
-
"version-lock": {
|
|
66
|
-
"$ref": "https://ns.adobe.com/helix/shared/version-lock"
|
|
67
|
-
},
|
|
68
|
-
"params": {
|
|
69
|
-
"description": "A list (using globbing language) of accepted URL parameters. Note: every parameter is a potential cache killer.",
|
|
70
|
-
"type": "array",
|
|
71
|
-
"items": {
|
|
72
|
-
"type": "string"
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"redirects": {
|
|
76
|
-
"type": "array",
|
|
77
|
-
"description": "The redirect rules that should be applied to this strain",
|
|
78
|
-
"items": {
|
|
79
|
-
"$ref": "https://ns.adobe.com/helix/shared/redirectrule"
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
"required": [
|
|
84
|
-
"origin",
|
|
85
|
-
"name"
|
|
86
|
-
]
|
|
87
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta:license": [
|
|
3
|
-
"Copyright 2020 Adobe. All rights reserved.",
|
|
4
|
-
"This file is licensed to you under the Apache License, Version 2.0 (the \"License\");",
|
|
5
|
-
"you may not use this file except in compliance with the License. You may obtain a copy",
|
|
6
|
-
"of the License at http://www.apache.org/licenses/LICENSE-2.0",
|
|
7
|
-
"",
|
|
8
|
-
"Unless required by applicable law or agreed to in writing, software distributed under",
|
|
9
|
-
"the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS",
|
|
10
|
-
"OF ANY KIND, either express or implied. See the License for the specific language",
|
|
11
|
-
"governing permissions and limitations under the License."
|
|
12
|
-
],
|
|
13
|
-
"$id": "https://ns.adobe.com/helix/shared/redirect",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Redirect",
|
|
16
|
-
"description": "A redirect specification take take the form of either a URL of a spreadsheet with rewrite rules or a rewrite rule as `from`, `to` pairs.",
|
|
17
|
-
"anyOf": [
|
|
18
|
-
{
|
|
19
|
-
"type": "string",
|
|
20
|
-
"format": "uri",
|
|
21
|
-
"title": "Rewrites Excel Spreadsheet",
|
|
22
|
-
"description": "A link to an Excel spreadsheet hosted on Sharepoint, shared with `helix@adobe.com` that has at least two columns. The first column, titled ‟from” contains the rewrite source path, the second column, titled ‟to” specifies the rewrite target path."
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"type": "string",
|
|
26
|
-
"format": "uri",
|
|
27
|
-
"title": "Rewrites Google Spreadsheet",
|
|
28
|
-
"description": "A link to a Google spreadsheet, shared with `helix@adobe.com` that has at least two columns. The first column, titled ‟from” contains the rewrite source path, the second column, titled ‟to” specifies the rewrite target path."
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"$ref": "https://ns.adobe.com/helix/shared/redirectrule"
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta:license": [
|
|
3
|
-
"Copyright 2019 Adobe. All rights reserved.",
|
|
4
|
-
"This file is licensed to you under the Apache License, Version 2.0 (the \"License\");",
|
|
5
|
-
"you may not use this file except in compliance with the License. You may obtain a copy",
|
|
6
|
-
"of the License at http://www.apache.org/licenses/LICENSE-2.0",
|
|
7
|
-
"",
|
|
8
|
-
"Unless required by applicable law or agreed to in writing, software distributed under",
|
|
9
|
-
"the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS",
|
|
10
|
-
"OF ANY KIND, either express or implied. See the License for the specific language",
|
|
11
|
-
"governing permissions and limitations under the License."
|
|
12
|
-
],
|
|
13
|
-
"$id": "https://ns.adobe.com/helix/shared/redirectrule",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Redirect Rule",
|
|
16
|
-
"type": "object",
|
|
17
|
-
"meta:status": "stabilizing",
|
|
18
|
-
"description": "A strain is a combination of code and content that enables the creation of a digital experience. Strains can be used to create language variants of websites, A/B tests, personalization, or to aggregate content from multiple sources",
|
|
19
|
-
"additionalProperties": false,
|
|
20
|
-
"properties": {
|
|
21
|
-
"from": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"description": "A URL path or regular expression to match the path of a URL. It can contain capture groups that can be used in `to`.",
|
|
24
|
-
"examples": [
|
|
25
|
-
"/old",
|
|
26
|
-
"/old/(.*)\\.php$"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
"to": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"description": "A replacement string that replaces matched URLs found in `from`.",
|
|
32
|
-
"examples": [
|
|
33
|
-
"/new",
|
|
34
|
-
"/new/$1.html"
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
"type": {
|
|
38
|
-
"enum": [
|
|
39
|
-
"permanent",
|
|
40
|
-
"temporary",
|
|
41
|
-
"internal"
|
|
42
|
-
],
|
|
43
|
-
"description": "What kind of redirect is this?"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
This configuration file enables the creation of programmatic redirects, rewrites, and vanity URLs.
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta:license": [
|
|
3
|
-
"Copyright 2020 Adobe. All rights reserved.",
|
|
4
|
-
"This file is licensed to you under the Apache License, Version 2.0 (the \"License\");",
|
|
5
|
-
"you may not use this file except in compliance with the License. You may obtain a copy",
|
|
6
|
-
"of the License at http://www.apache.org/licenses/LICENSE-2.0",
|
|
7
|
-
"",
|
|
8
|
-
"Unless required by applicable law or agreed to in writing, software distributed under",
|
|
9
|
-
"the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS",
|
|
10
|
-
"OF ANY KIND, either express or implied. See the License for the specific language",
|
|
11
|
-
"governing permissions and limitations under the License."
|
|
12
|
-
],
|
|
13
|
-
"$id": "https://ns.adobe.com/helix/shared/redirects",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Redirects Configuration",
|
|
16
|
-
"type": "object",
|
|
17
|
-
"properties": {
|
|
18
|
-
"version": {
|
|
19
|
-
"type":["string", "number"],
|
|
20
|
-
"enum": ["1", 1],
|
|
21
|
-
"default": 1,
|
|
22
|
-
"description": "The redirect-config file format version"
|
|
23
|
-
},
|
|
24
|
-
"redirects": {
|
|
25
|
-
"type": "array",
|
|
26
|
-
"default": [],
|
|
27
|
-
"items": {
|
|
28
|
-
"$ref": "https://ns.adobe.com/helix/shared/redirect"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"vanity": {
|
|
32
|
-
"type": "object",
|
|
33
|
-
"title": "Vanity URL extractor",
|
|
34
|
-
"description": "Configure one or multiple vanity URL extractors, each extractor is a property of this object",
|
|
35
|
-
"default": {},
|
|
36
|
-
"additionalProperties": {
|
|
37
|
-
"$ref": "https://ns.adobe.com/helix/shared/vanity"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta:license": [
|
|
3
|
-
"Copyright 2021 Adobe. All rights reserved.",
|
|
4
|
-
"This file is licensed to you under the Apache License, Version 2.0 (the \"License\");",
|
|
5
|
-
"you may not use this file except in compliance with the License. You may obtain a copy",
|
|
6
|
-
"of the License at http://www.apache.org/licenses/LICENSE-2.0",
|
|
7
|
-
"",
|
|
8
|
-
"Unless required by applicable law or agreed to in writing, software distributed under",
|
|
9
|
-
"the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS",
|
|
10
|
-
"OF ANY KIND, either express or implied. See the License for the specific language",
|
|
11
|
-
"governing permissions and limitations under the License."
|
|
12
|
-
],
|
|
13
|
-
"$id": "https://ns.adobe.com/helix/data-embed/row",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Row",
|
|
16
|
-
"type": "object",
|
|
17
|
-
"meta:status": "stabilizing",
|
|
18
|
-
"description": "A JSON representation of an Excel or Google Sheets data row.",
|
|
19
|
-
"additionalProperties": {
|
|
20
|
-
"type": ["string", "number"],
|
|
21
|
-
"description": "Value of the cell in the given column."
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta:license": [
|
|
3
|
-
"Copyright 2019 Adobe. All rights reserved.",
|
|
4
|
-
"This file is licensed to you under the Apache License, Version 2.0 (the \"License\");",
|
|
5
|
-
"you may not use this file except in compliance with the License. You may obtain a copy",
|
|
6
|
-
"of the License at http://www.apache.org/licenses/LICENSE-2.0",
|
|
7
|
-
"",
|
|
8
|
-
"Unless required by applicable law or agreed to in writing, software distributed under",
|
|
9
|
-
"the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS",
|
|
10
|
-
"OF ANY KIND, either express or implied. See the License for the specific language",
|
|
11
|
-
"governing permissions and limitations under the License."
|
|
12
|
-
],
|
|
13
|
-
"$id": "https://ns.adobe.com/helix/shared/runtimestrain",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Runtime Strain",
|
|
16
|
-
"type": "object",
|
|
17
|
-
"meta:status": "stabilizing",
|
|
18
|
-
"description": "A runtime strain is a combination of code and content that enables the creation of a digital experience.",
|
|
19
|
-
"additionalProperties": false,
|
|
20
|
-
"properties": {
|
|
21
|
-
"name": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"description": "Name of the strain"
|
|
24
|
-
},
|
|
25
|
-
"code": {
|
|
26
|
-
"description": "Pointer to the code repository",
|
|
27
|
-
"oneOf": [
|
|
28
|
-
{
|
|
29
|
-
"type": "string",
|
|
30
|
-
"format": "uri"
|
|
31
|
-
},
|
|
32
|
-
{"$ref": "https://ns.adobe.com/helix/shared/giturl"}
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
"content": {
|
|
36
|
-
"description": "Pointer to the content repository",
|
|
37
|
-
"oneOf": [
|
|
38
|
-
{
|
|
39
|
-
"type": "string",
|
|
40
|
-
"format": "uri"
|
|
41
|
-
},
|
|
42
|
-
{"$ref": "https://ns.adobe.com/helix/shared/giturl"}
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
"static": {
|
|
46
|
-
"description": "Pointer to the repository for static resources",
|
|
47
|
-
"oneOf": [
|
|
48
|
-
{
|
|
49
|
-
"type": "string",
|
|
50
|
-
"format": "uri"
|
|
51
|
-
},
|
|
52
|
-
{"$ref": "https://ns.adobe.com/helix/shared/staticgiturl"}
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
"directoryIndex": {
|
|
56
|
-
"description": "Name of the resource to use for requests to directories (no extension).\nWhen a request is made by the browser to `/help` and `directoryIndex=README.html`, then the request will be treated as if it was made to `/help/README.html`. Slashes (`/`) are not allowed in the directory index.",
|
|
57
|
-
"type": "string",
|
|
58
|
-
"pattern": "^[^/]+$",
|
|
59
|
-
"default": "index.html"
|
|
60
|
-
},
|
|
61
|
-
"sticky": {
|
|
62
|
-
"description": "Sticky strains are not re-evaluated on every request. As soon as a visitor is determined to match a sticky strain, a session cookie will be set to keep the user in the strain.",
|
|
63
|
-
"type": "boolean"
|
|
64
|
-
},
|
|
65
|
-
"package": {
|
|
66
|
-
"oneOf": [
|
|
67
|
-
{
|
|
68
|
-
"description": "Name of the action package that renders this strain.",
|
|
69
|
-
"type": "string",
|
|
70
|
-
"pattern": "^[^/]*$",
|
|
71
|
-
"examples": [
|
|
72
|
-
"10e05c072b108ac9533c6206c6eaa651901ca29b"
|
|
73
|
-
]
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"description": "A pair of OpenWhisk namespace and package name, separated by slash.\n\n This will be the base package to look up actions to run in this strain.",
|
|
77
|
-
"type": "string",
|
|
78
|
-
"pattern": "^[^/]+\\/[^/]+$",
|
|
79
|
-
"examples": [
|
|
80
|
-
"helix-pages/pages_4.15.1",
|
|
81
|
-
"trieloff/10e05c072b108ac9533c6206c6eaa651901ca29b"
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"description": "A base URL to use for all actions in this strain.",
|
|
86
|
-
"type": "string",
|
|
87
|
-
"format": "uri",
|
|
88
|
-
"examples": [
|
|
89
|
-
"https://helix-pages.anywhere.run/helix-pages/pages@4.15.1"
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
},
|
|
94
|
-
"url": {
|
|
95
|
-
"description": "URL condition.\n\n**Warning**: this property has been deprecated in favour of adding the `url` to the `condition` property.",
|
|
96
|
-
"type": "string",
|
|
97
|
-
"format": "uri",
|
|
98
|
-
"meta:status": "deprecated"
|
|
99
|
-
},
|
|
100
|
-
"urls": {
|
|
101
|
-
"description": "List of known URLs for testing this strain",
|
|
102
|
-
"type": "array",
|
|
103
|
-
"items": {
|
|
104
|
-
"type": "string",
|
|
105
|
-
"format": "uri"
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
"condition": {
|
|
109
|
-
"description": "VLC condition that controls that can optionally activate this strain.",
|
|
110
|
-
"oneOf": [
|
|
111
|
-
{
|
|
112
|
-
"type": "string"
|
|
113
|
-
},
|
|
114
|
-
{"$ref": "https://ns.adobe.com/helix/shared/conditions"}
|
|
115
|
-
]
|
|
116
|
-
},
|
|
117
|
-
"perf": {
|
|
118
|
-
"$ref": "https://ns.adobe.com/helix/shared/performance"
|
|
119
|
-
},
|
|
120
|
-
"version-lock": {
|
|
121
|
-
"$ref": "https://ns.adobe.com/helix/shared/version-lock"
|
|
122
|
-
},
|
|
123
|
-
"params": {
|
|
124
|
-
"description": "A list (using globbing language) of accepted URL parameters. Note: every parameter is a potential cache killer.",
|
|
125
|
-
"type": "array",
|
|
126
|
-
"items": {
|
|
127
|
-
"type": "string"
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
"redirects": {
|
|
131
|
-
"type": "array",
|
|
132
|
-
"description": "The redirect rules that should be applied to this strain",
|
|
133
|
-
"items": {
|
|
134
|
-
"$ref": "https://ns.adobe.com/helix/shared/redirectrule"
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
"required": [
|
|
139
|
-
"code",
|
|
140
|
-
"content",
|
|
141
|
-
"static",
|
|
142
|
-
"name"
|
|
143
|
-
]
|
|
144
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta:license": [
|
|
3
|
-
"Copyright 2021 Adobe. All rights reserved.",
|
|
4
|
-
"This file is licensed to you under the Apache License, Version 2.0 (the \"License\");",
|
|
5
|
-
"you may not use this file except in compliance with the License. You may obtain a copy",
|
|
6
|
-
"of the License at http://www.apache.org/licenses/LICENSE-2.0",
|
|
7
|
-
"",
|
|
8
|
-
"Unless required by applicable law or agreed to in writing, software distributed under",
|
|
9
|
-
"the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS",
|
|
10
|
-
"OF ANY KIND, either express or implied. See the License for the specific language",
|
|
11
|
-
"governing permissions and limitations under the License."
|
|
12
|
-
],
|
|
13
|
-
"$id": "https://ns.adobe.com/helix/data-embed/sheet",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Worksheet",
|
|
16
|
-
"type": "object",
|
|
17
|
-
"meta:status": "stabilizing",
|
|
18
|
-
"description": "A JSON representation of an Excel or Google Sheets worksheet containing rows and columns.",
|
|
19
|
-
"properties": {
|
|
20
|
-
":type": {
|
|
21
|
-
"const": "sheet",
|
|
22
|
-
"description": "The response type, depending on the presence of the `sheet` request parameter."
|
|
23
|
-
},
|
|
24
|
-
"limit": {
|
|
25
|
-
"type": "integer",
|
|
26
|
-
"minimum": 0,
|
|
27
|
-
"description": "The maximum number of items requested by the `limit` parameter."
|
|
28
|
-
},
|
|
29
|
-
"offset": {
|
|
30
|
-
"type": "integer",
|
|
31
|
-
"minimum": 0,
|
|
32
|
-
"description": "The starting row that items have been retrieved by as specified by the `offset` parameter."
|
|
33
|
-
},
|
|
34
|
-
"total": {
|
|
35
|
-
"type": "integer",
|
|
36
|
-
"minimum": 0,
|
|
37
|
-
"description": "The total number of items in the data sheet. This value can be greater than the sum of `limit` and `offset`"
|
|
38
|
-
},
|
|
39
|
-
"data": {
|
|
40
|
-
"type": "array",
|
|
41
|
-
"description": "The data rows that are part of the result set",
|
|
42
|
-
"items": {
|
|
43
|
-
"$ref": "https://ns.adobe.com/helix/data-embed/row"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
":version": {
|
|
47
|
-
"type": "number",
|
|
48
|
-
"enum": [3],
|
|
49
|
-
"default": 3,
|
|
50
|
-
"description": "The workbook response format version"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"additionalProperties": false,
|
|
54
|
-
"required": [
|
|
55
|
-
"limit", "offset", "data", "total"
|
|
56
|
-
]
|
|
57
|
-
}
|