@adobe/helix-config 2.5.5 → 2.7.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 +15 -0
- package/package.json +5 -2
- package/src/schemas/access-admin.schema.cjs +12 -0
- package/src/schemas/access-site.schema.cjs +12 -0
- package/src/schemas/access.schema.cjs +12 -0
- package/src/schemas/access.schema.json +29 -0
- package/src/schemas/cdn.schema.cjs +12 -0
- package/src/schemas/cdn.schema.json +233 -0
- package/src/schemas/code.schema.cjs +12 -0
- package/src/schemas/code.schema.json +53 -0
- package/src/schemas/common.schema.cjs +12 -0
- package/src/schemas/content-source-google.schema.cjs +12 -0
- package/src/schemas/content-source-markup.schema.cjs +12 -0
- package/src/schemas/content-source-onedrive.schema.cjs +12 -0
- package/src/schemas/content.schema.cjs +12 -0
- package/src/schemas/content.schema.json +35 -0
- package/src/schemas/folders.schema.cjs +12 -0
- package/src/schemas/folders.schema.json +25 -0
- package/src/schemas/metadata-source.schema.cjs +12 -0
- package/src/schemas/metadata-source.schema.json +26 -0
- package/src/schemas/profile.schema.cjs +12 -0
- package/src/schemas/profile.schema.json +55 -0
- package/src/schemas/sidekick.schema.cjs +12 -0
- package/src/schemas/site.schema.cjs +12 -0
- package/src/schemas/site.schema.json +62 -0
- package/src/storage/ValidationError.js +46 -0
- package/src/storage/config-store.js +20 -3
- package/src/storage/config-validator.js +77 -0
- package/src/storage/utils.js +65 -11
- package/types/profile-config.d.ts +249 -0
- package/types/site-config.d.ts +25 -16
- package/src/schemas/cdn-config.schema.json +0 -182
- package/src/schemas/site-config.schema.json +0 -146
- /package/src/schemas/{admin-access-config.schema.json → access-admin.schema.json} +0 -0
- /package/src/schemas/{access-config.schema.json → access-site.schema.json} +0 -0
- /package/src/schemas/{content-google.schema.json → content-source-google.schema.json} +0 -0
- /package/src/schemas/{content-markup.schema.json → content-source-markup.schema.json} +0 -0
- /package/src/schemas/{content-onedrive.schema.json → content-source-onedrive.schema.json} +0 -0
- /package/src/schemas/{sidekick-config.schema.json → sidekick.schema.json} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [2.7.0](https://github.com/adobe/helix-config/compare/v2.6.0...v2.7.0) (2024-04-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* trigger releaase ([0bfd949](https://github.com/adobe/helix-config/commit/0bfd94974e6e70fdcddd0daf24d48552e074926d))
|
|
7
|
+
* trigger release ([514f88a](https://github.com/adobe/helix-config/commit/514f88a8d4afeb67357d78d649d499df597944c2))
|
|
8
|
+
|
|
9
|
+
# [2.6.0](https://github.com/adobe/helix-config/compare/v2.5.5...v2.6.0) (2024-04-23)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* validate config ([e7011df](https://github.com/adobe/helix-config/commit/e7011dfda45a13bc847e1df304a53c93c93434fb))
|
|
15
|
+
|
|
1
16
|
## [2.5.5](https://github.com/adobe/helix-config/compare/v2.5.4...v2.5.5) (2024-04-20)
|
|
2
17
|
|
|
3
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "Helix Config",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"c8": "9.1.0",
|
|
45
45
|
"eslint": "8.57.0",
|
|
46
46
|
"husky": "9.0.11",
|
|
47
|
-
"json-schema-to-typescript": "
|
|
47
|
+
"json-schema-to-typescript": "14.0.0",
|
|
48
48
|
"junit-report-builder": "3.2.1",
|
|
49
49
|
"lint-staged": "15.2.2",
|
|
50
50
|
"mocha": "10.4.0",
|
|
@@ -61,10 +61,13 @@
|
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@adobe/fetch": "4.1.2",
|
|
63
63
|
"@adobe/helix-shared-config": "10.4.2",
|
|
64
|
+
"@adobe/helix-shared-git": "3.0.8",
|
|
64
65
|
"@adobe/helix-shared-process-queue": "3.0.4",
|
|
65
66
|
"@adobe/helix-shared-utils": "3.0.2",
|
|
66
67
|
"@aws-sdk/client-s3": "3.556.0",
|
|
67
68
|
"@smithy/node-http-handler": "2.5.0",
|
|
69
|
+
"ajv": "8.12.0",
|
|
70
|
+
"ajv-formats": "3.0.1",
|
|
68
71
|
"mime": "4.0.1"
|
|
69
72
|
}
|
|
70
73
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./access-admin.schema.json');
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./access-site.schema.json');
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./access.schema.json');
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta:license": [
|
|
3
|
+
"Copyright 2024 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
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
14
|
+
"$id": "https://ns.adobe.com/helix/config/access",
|
|
15
|
+
"type": "object",
|
|
16
|
+
"title": "Access",
|
|
17
|
+
"properties": {
|
|
18
|
+
"admin": {
|
|
19
|
+
"$ref": "https://ns.adobe.com/helix/config/access/admin"
|
|
20
|
+
},
|
|
21
|
+
"preview": {
|
|
22
|
+
"$ref": "https://ns.adobe.com/helix/config/access/site"
|
|
23
|
+
},
|
|
24
|
+
"live": {
|
|
25
|
+
"$ref": "https://ns.adobe.com/helix/config/access/site"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"additionalProperties": false
|
|
29
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./cdn.schema.json');
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta:license": [
|
|
3
|
+
"Copyright 2023 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/config/cdn",
|
|
14
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
+
"$defs": {
|
|
16
|
+
"stringOrArray": {
|
|
17
|
+
"oneOf": [
|
|
18
|
+
{
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"title": "CDN Config",
|
|
31
|
+
"type": "object",
|
|
32
|
+
"properties": {
|
|
33
|
+
"prod": {
|
|
34
|
+
"oneOf": [
|
|
35
|
+
{
|
|
36
|
+
"type": "object",
|
|
37
|
+
"title": "FastlyConfig",
|
|
38
|
+
"description": "Production CDN configuration for Fastly",
|
|
39
|
+
"properties": {
|
|
40
|
+
"type": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"const": "fastly"
|
|
43
|
+
},
|
|
44
|
+
"host": {
|
|
45
|
+
"description": "production host",
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"route": {
|
|
49
|
+
"description": "Routes on the CDN that are rendered with Franklin",
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"serviceId": {
|
|
56
|
+
"description": "The Fastly Service ID",
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"authToken": {
|
|
60
|
+
"description": "A Fastly token for purging",
|
|
61
|
+
"type": "string"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"required": [
|
|
65
|
+
"type",
|
|
66
|
+
"host",
|
|
67
|
+
"serviceId",
|
|
68
|
+
"authToken"
|
|
69
|
+
],
|
|
70
|
+
"additionalProperties": false
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"type": "object",
|
|
74
|
+
"title": "AkamaiConfig",
|
|
75
|
+
"properties": {
|
|
76
|
+
"type": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"const": "akamai"
|
|
79
|
+
},
|
|
80
|
+
"host": {
|
|
81
|
+
"description": "production host",
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
"route": {
|
|
85
|
+
"description": "Routes on the CDN that are rendered with Franklin",
|
|
86
|
+
"type": "array",
|
|
87
|
+
"items": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"endpoint": {
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
94
|
+
"clientSecret": {
|
|
95
|
+
"type": "string"
|
|
96
|
+
},
|
|
97
|
+
"clientToken": {
|
|
98
|
+
"type": "string"
|
|
99
|
+
},
|
|
100
|
+
"accessToken": {
|
|
101
|
+
"type": "string"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"required": [
|
|
105
|
+
"type",
|
|
106
|
+
"host",
|
|
107
|
+
"endpoint",
|
|
108
|
+
"clientSecret",
|
|
109
|
+
"clientToken",
|
|
110
|
+
"accessToken"
|
|
111
|
+
],
|
|
112
|
+
"additionalProperties": false
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"type": "object",
|
|
116
|
+
"title": "CloudflareConfig",
|
|
117
|
+
"properties": {
|
|
118
|
+
"type": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"const": "cloudflare"
|
|
121
|
+
},
|
|
122
|
+
"host": {
|
|
123
|
+
"description": "production host",
|
|
124
|
+
"type": "string"
|
|
125
|
+
},
|
|
126
|
+
"route": {
|
|
127
|
+
"description": "Routes on the CDN that are rendered with Franklin",
|
|
128
|
+
"type": "array",
|
|
129
|
+
"items": {
|
|
130
|
+
"type": "string"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"origin": {
|
|
134
|
+
"type": "string"
|
|
135
|
+
},
|
|
136
|
+
"plan": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
"zoneId": {
|
|
140
|
+
"type": "string"
|
|
141
|
+
},
|
|
142
|
+
"apiToken": {
|
|
143
|
+
"type": "string"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"required": [
|
|
147
|
+
"type",
|
|
148
|
+
"host",
|
|
149
|
+
"origin",
|
|
150
|
+
"plan",
|
|
151
|
+
"zoneId",
|
|
152
|
+
"apiToken"
|
|
153
|
+
],
|
|
154
|
+
"additionalProperties": false
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"type": "object",
|
|
158
|
+
"title": "ManagedConfig",
|
|
159
|
+
"properties": {
|
|
160
|
+
"type": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"const": "managed"
|
|
163
|
+
},
|
|
164
|
+
"host": {
|
|
165
|
+
"description": "production host",
|
|
166
|
+
"type": "string"
|
|
167
|
+
},
|
|
168
|
+
"route": {
|
|
169
|
+
"description": "Routes on the CDN that are rendered with Franklin",
|
|
170
|
+
"type": "array",
|
|
171
|
+
"items": {
|
|
172
|
+
"type": "string"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"required": [
|
|
177
|
+
"type",
|
|
178
|
+
"host"
|
|
179
|
+
],
|
|
180
|
+
"additionalProperties": false
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"type": "object",
|
|
184
|
+
"title": "EmptyConfig",
|
|
185
|
+
"properties": {
|
|
186
|
+
"host": {
|
|
187
|
+
"description": "production host",
|
|
188
|
+
"type": "string"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"required": [
|
|
192
|
+
"host"
|
|
193
|
+
],
|
|
194
|
+
"additionalProperties": false
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
"live": {
|
|
199
|
+
"properties": {
|
|
200
|
+
"host": {
|
|
201
|
+
"description": "Sidekick config to override the default preview host. it supports parameters $owner and $repo",
|
|
202
|
+
"examples": [
|
|
203
|
+
"main--$repo--page.example.com"
|
|
204
|
+
],
|
|
205
|
+
"type": "string"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"required": [
|
|
209
|
+
"host"
|
|
210
|
+
],
|
|
211
|
+
"additionalProperties": false
|
|
212
|
+
},
|
|
213
|
+
"preview": {
|
|
214
|
+
"properties": {
|
|
215
|
+
"host": {
|
|
216
|
+
"description": "Sidekick config to override the default live host. it supports parameters $owner and $repo",
|
|
217
|
+
"examples": [
|
|
218
|
+
"main--$repo--live.example.com\""
|
|
219
|
+
],
|
|
220
|
+
"type": "string"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"required": [
|
|
224
|
+
"host"
|
|
225
|
+
],
|
|
226
|
+
"additionalProperties": false
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"required": [
|
|
230
|
+
"prod"
|
|
231
|
+
],
|
|
232
|
+
"additionalProperties": false
|
|
233
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./code.schema.json');
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta:license": [
|
|
3
|
+
"Copyright 2024 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
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
14
|
+
"$id": "https://ns.adobe.com/helix/config/code",
|
|
15
|
+
"title": "Code Bus",
|
|
16
|
+
"type": "object",
|
|
17
|
+
"description": "Defines the code bus location and source.",
|
|
18
|
+
"properties": {
|
|
19
|
+
"title": { "$ref": "https://ns.adobe.com/helix/config/common#/$defs/title" },
|
|
20
|
+
"description": { "$ref": "https://ns.adobe.com/helix/config/common#/$defs/description" },
|
|
21
|
+
"owner": {
|
|
22
|
+
"$comment": "Note, that owner/repo are no longer part of the hostname and can therefor have more allowed characters than in helix4",
|
|
23
|
+
"type": "string",
|
|
24
|
+
"pattern": "[a-zA-Z0-9_-]+"
|
|
25
|
+
},
|
|
26
|
+
"repo": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"pattern": "[a-zA-Z0-9_-]+"
|
|
29
|
+
},
|
|
30
|
+
"source": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"properties": {
|
|
33
|
+
"type": {
|
|
34
|
+
"const": "github"
|
|
35
|
+
},
|
|
36
|
+
"url": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"format": "uri"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"required": [
|
|
42
|
+
"type",
|
|
43
|
+
"url"
|
|
44
|
+
],
|
|
45
|
+
"additionalProperties": false
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": [
|
|
49
|
+
"owner",
|
|
50
|
+
"repo",
|
|
51
|
+
"source"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./common.schema.json');
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./content-source-google.schema.json');
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./content-source-markup.schema.json');
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./content-source-onedrive.schema.json');
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./content.schema.json');
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta:license": [
|
|
3
|
+
"Copyright 2024 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
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
14
|
+
"$id": "https://ns.adobe.com/helix/config/content",
|
|
15
|
+
"type": "object",
|
|
16
|
+
"title": "Content Bus",
|
|
17
|
+
"description": "Defines the content bus location and source.",
|
|
18
|
+
"properties": {
|
|
19
|
+
"title": { "$ref": "https://ns.adobe.com/helix/config/common#/$defs/title" },
|
|
20
|
+
"description": { "$ref": "https://ns.adobe.com/helix/config/common#/$defs/description" },
|
|
21
|
+
"contentBusId": {"type": "string" },
|
|
22
|
+
"source": {
|
|
23
|
+
"oneOf": [
|
|
24
|
+
{ "$ref": "https://ns.adobe.com/helix/config/content-source/google" },
|
|
25
|
+
{ "$ref": "https://ns.adobe.com/helix/config/content-source/onedrive" },
|
|
26
|
+
{ "$ref": "https://ns.adobe.com/helix/config/content-source/markup" }
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"required": [
|
|
31
|
+
"contentBusId",
|
|
32
|
+
"source"
|
|
33
|
+
],
|
|
34
|
+
"additionalProperties": false
|
|
35
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./folders.schema.json');
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta:license": [
|
|
3
|
+
"Copyright 2024 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
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
14
|
+
"$id": "https://ns.adobe.com/helix/config/folders",
|
|
15
|
+
"type": "object",
|
|
16
|
+
"title": "folders",
|
|
17
|
+
"patternProperties": {
|
|
18
|
+
"^/[a-zA-Z0-9-/.]+$": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": [
|
|
21
|
+
{ "type": "string" }
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./metadata-source.schema.json');
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta:license": [
|
|
3
|
+
"Copyright 2024 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
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
14
|
+
"$id": "https://ns.adobe.com/helix/config/metadata-source",
|
|
15
|
+
"type": "object",
|
|
16
|
+
"title": "metadata",
|
|
17
|
+
"properties": {
|
|
18
|
+
"source": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": [
|
|
21
|
+
{ "type": "string" }
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./profile.schema.json');
|