@adobe/helix-shared-config 1.7.23 → 2.0.2
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 +38 -0
- package/package.json +10 -7
- 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,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
|
-
}
|
|
@@ -1,80 +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/staticgiturl",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Git URL",
|
|
16
|
-
"type": "object",
|
|
17
|
-
"meta:status": "stabilizing",
|
|
18
|
-
"description": "Representation of the fragments of a Git URL",
|
|
19
|
-
"additionalProperties": false,
|
|
20
|
-
"properties": {
|
|
21
|
-
"protocol": {
|
|
22
|
-
"description": "The protocol to access the Git repository",
|
|
23
|
-
"enum": ["https", "http", "ssh"],
|
|
24
|
-
"type":"string"
|
|
25
|
-
},
|
|
26
|
-
"hostname": {
|
|
27
|
-
"description": "The hostname without port",
|
|
28
|
-
"type":"string",
|
|
29
|
-
"format": "hostname"
|
|
30
|
-
},
|
|
31
|
-
"host": {
|
|
32
|
-
"description": "The hostname with port",
|
|
33
|
-
"type":"string"
|
|
34
|
-
},
|
|
35
|
-
"port": {
|
|
36
|
-
"description": "The port to access the Git Repository",
|
|
37
|
-
"type":["integer", "string"]
|
|
38
|
-
},
|
|
39
|
-
"owner": {
|
|
40
|
-
"description": "The owner or username that the repository belongs to",
|
|
41
|
-
"type":"string"
|
|
42
|
-
},
|
|
43
|
-
"path": {
|
|
44
|
-
"description": "The path within the repository",
|
|
45
|
-
"type":"string"
|
|
46
|
-
},
|
|
47
|
-
"repo": {
|
|
48
|
-
"description": "The repository name",
|
|
49
|
-
"type":"string"
|
|
50
|
-
},
|
|
51
|
-
"ref": {
|
|
52
|
-
"description": "The branch, tag, or sha of the tree in the repository to use",
|
|
53
|
-
"default": "master",
|
|
54
|
-
"type":"string"
|
|
55
|
-
},
|
|
56
|
-
"allow": {
|
|
57
|
-
"description": "List of white listed paths",
|
|
58
|
-
"type": "array",
|
|
59
|
-
"items": {
|
|
60
|
-
"type": "string"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"deny": {
|
|
64
|
-
"description": "List of white listed paths",
|
|
65
|
-
"type": "array",
|
|
66
|
-
"items": {
|
|
67
|
-
"type": "string"
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
"magic": {
|
|
71
|
-
"type": "boolean",
|
|
72
|
-
"description": "Deprecated: Enable server-side asset processing."
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"required": [
|
|
76
|
-
"owner",
|
|
77
|
-
"repo",
|
|
78
|
-
"ref"
|
|
79
|
-
]
|
|
80
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta:license": [
|
|
3
|
-
"Copyright 2018 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/strains",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Strains",
|
|
16
|
-
"meta:status": "stabilizing",
|
|
17
|
-
"definitions": {
|
|
18
|
-
"anystrain": {
|
|
19
|
-
"oneOf": [
|
|
20
|
-
{
|
|
21
|
-
"$ref": "https://ns.adobe.com/helix/shared/proxystrain"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"$ref": "https://ns.adobe.com/helix/shared/runtimestrain"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"oneOf": [
|
|
30
|
-
{
|
|
31
|
-
"type": "array",
|
|
32
|
-
"minItems": 1,
|
|
33
|
-
"description": "A list of strains. Every strain name must be unique for a given config.",
|
|
34
|
-
"items": {
|
|
35
|
-
"$ref": "#/definitions/anystrain"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
]
|
|
39
|
-
}
|
|
@@ -1,38 +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/vanity",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Vanity URL mapping",
|
|
16
|
-
"type": "object",
|
|
17
|
-
"properties": {
|
|
18
|
-
"source": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"enum": ["html", "markdown"],
|
|
21
|
-
"title": "Source",
|
|
22
|
-
"description": "The source representation to be used by the indexer to extract values"
|
|
23
|
-
},
|
|
24
|
-
"fetch": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"format": "uri-template",
|
|
27
|
-
"description": "The source document to retrieve values from. Known variables in the URI Template are: `repo`, `ref`, `owner`, `path`"
|
|
28
|
-
},
|
|
29
|
-
"select": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"description": "A CSS selector expression that selects nodes in the HTML (DOM) or Markdown (MDAST) syntax tree"
|
|
32
|
-
},
|
|
33
|
-
"value": {
|
|
34
|
-
"type": "string",
|
|
35
|
-
"description": "A ES6 template literal expression that extracts the value from the matching node(s) to be stored in the index"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
The `version-lock` property allows pinning of specific services to a particular version number.
|
|
2
|
-
|
|
3
|
-
Each property is the name of the service, the value is either the version number or (when starting with `v`) or the CI build number (when starting with `ci`) or any other version string.
|
|
@@ -1,35 +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/version-lock",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Version Lock",
|
|
16
|
-
"description": "",
|
|
17
|
-
"type": "object",
|
|
18
|
-
"additionalProperties": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"description": "A version number string",
|
|
21
|
-
"title": "Service Version",
|
|
22
|
-
"examples": [
|
|
23
|
-
"1.0.0",
|
|
24
|
-
"v1.0",
|
|
25
|
-
"v1",
|
|
26
|
-
"ci999"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
"examples":[
|
|
30
|
-
{
|
|
31
|
-
"helix-embed": "v3",
|
|
32
|
-
"helix-data-embed": "ci999"
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
}
|
|
@@ -1,49 +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/workbook",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Workbook",
|
|
16
|
-
"type": "object",
|
|
17
|
-
"meta:status": "stabilizing",
|
|
18
|
-
"description": "A JSON representation of an Excel or Google Sheets workbook containing multiple sheets.",
|
|
19
|
-
"properties": {
|
|
20
|
-
":type": {
|
|
21
|
-
"const": "multi-sheet",
|
|
22
|
-
"description": "The response type, depending on the presence of the `sheet` request parameter."
|
|
23
|
-
},
|
|
24
|
-
":names": {
|
|
25
|
-
"type": "array",
|
|
26
|
-
"description": "The list of sheet names that exist in the workbook response.",
|
|
27
|
-
"items": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"description": "The sheet name. Sheet names may not start with `:`",
|
|
30
|
-
"pattern": "^[^:].*"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
":version": {
|
|
34
|
-
"type": "number",
|
|
35
|
-
"enum": [
|
|
36
|
-
3
|
|
37
|
-
],
|
|
38
|
-
"default": 3,
|
|
39
|
-
"description": "The workbook response format version"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"patternProperties": {
|
|
43
|
-
"^[^:].*": { "$ref": "https://ns.adobe.com/helix/data-embed/sheet" }
|
|
44
|
-
},
|
|
45
|
-
"additionalProperties": false,
|
|
46
|
-
"required": [
|
|
47
|
-
":names"
|
|
48
|
-
]
|
|
49
|
-
}
|