@cloudcannon/configuration-types 0.0.53 → 0.0.54
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/dist/cloudcannon-collections.schema.json +956 -2187
- package/dist/cloudcannon-config.documentation.schema.json +487 -488
- package/dist/cloudcannon-config.latest.schema.json +248 -248
- package/dist/cloudcannon-config.legacy-eleventy.schema.json +312 -315
- package/dist/cloudcannon-config.legacy-hugo.schema.json +312 -315
- package/dist/cloudcannon-config.legacy-jekyll.schema.json +312 -315
- package/dist/cloudcannon-config.legacy-reader.schema.json +313 -316
- package/dist/cloudcannon-editables.schema.json +196 -332
- package/dist/cloudcannon-initial-site-settings.documentation.schema.json +15 -15
- package/dist/cloudcannon-initial-site-settings.schema.json +9 -9
- package/dist/cloudcannon-inputs.schema.json +177 -179
- package/dist/cloudcannon-routing.documentation.schema.json +23 -23
- package/dist/cloudcannon-routing.schema.json +13 -13
- package/dist/cloudcannon-schemas.schema.json +173 -173
- package/dist/cloudcannon-snippets-definitions.schema.json +21 -21
- package/dist/cloudcannon-snippets-imports.schema.json +55 -55
- package/dist/cloudcannon-snippets.schema.json +177 -177
- package/dist/cloudcannon-structure-value.schema.json +534 -533
- package/dist/cloudcannon-structures.schema.json +177 -179
- package/dist/documentation.json +10 -7
- package/package.json +4 -4
- package/src/inputs.ts +1 -4
|
@@ -1,28 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"title": "Routing",
|
|
4
|
-
"description": "Configuration for the `.cloudcannon/routing.json` file. Defines redirects, rewrites, and custom HTTP headers for your site.",
|
|
5
|
-
"id": "type.Routing",
|
|
6
3
|
"type": "object",
|
|
7
4
|
"properties": {
|
|
8
5
|
"routes": {
|
|
9
6
|
"description": "An array of route rules for redirects and rewrites. Rules are processed in order; the first matching rule is applied.",
|
|
10
7
|
"type": "array",
|
|
11
8
|
"items": {
|
|
12
|
-
"description": "A single route rule for redirects or rewrites.",
|
|
13
9
|
"type": "object",
|
|
14
10
|
"properties": {
|
|
15
11
|
"from": {
|
|
16
|
-
"
|
|
17
|
-
"
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "The URL pattern to match incoming requests against. CloudCannon routing supports glob-style patterns."
|
|
18
14
|
},
|
|
19
15
|
"to": {
|
|
20
|
-
"
|
|
21
|
-
"
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The destination path or URL for this route. Can be a relative path on the same site or an absolute URL for external redirects."
|
|
22
18
|
},
|
|
23
19
|
"status": {
|
|
24
|
-
"description": "The HTTP status code for this redirect rule. When using 200, 404, and 410 status codes, `to` must refer to a path on the same Site.",
|
|
25
20
|
"default": 301,
|
|
21
|
+
"description": "The HTTP status code for this redirect rule. When using 200, 404, and 410 status codes, `to` must refer to a path on the same Site.",
|
|
26
22
|
"type": "number",
|
|
27
23
|
"enum": [
|
|
28
24
|
200,
|
|
@@ -50,51 +46,55 @@
|
|
|
50
46
|
"from",
|
|
51
47
|
"to"
|
|
52
48
|
],
|
|
53
|
-
"additionalProperties": false
|
|
49
|
+
"additionalProperties": false,
|
|
50
|
+
"description": "A single route rule for redirects or rewrites."
|
|
54
51
|
}
|
|
55
52
|
},
|
|
56
53
|
"headers": {
|
|
57
54
|
"description": "An array of header rules to apply custom HTTP headers to responses.",
|
|
58
55
|
"type": "array",
|
|
59
56
|
"items": {
|
|
60
|
-
"description": "A rule for applying custom HTTP headers to matching requests.",
|
|
61
57
|
"type": "object",
|
|
62
58
|
"properties": {
|
|
63
59
|
"match": {
|
|
64
|
-
"
|
|
65
|
-
"
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "A glob pattern to match request paths against. Headers will be applied to responses for matching paths."
|
|
66
62
|
},
|
|
67
63
|
"headers": {
|
|
68
|
-
"description": "The list of HTTP headers to set for matching requests.",
|
|
69
64
|
"type": "array",
|
|
70
65
|
"items": {
|
|
71
|
-
"description": "A single HTTP header name-value pair.",
|
|
72
66
|
"type": "object",
|
|
73
67
|
"properties": {
|
|
74
68
|
"name": {
|
|
75
|
-
"
|
|
76
|
-
"
|
|
69
|
+
"type": "string",
|
|
70
|
+
"description": "The name of the HTTP header to set."
|
|
77
71
|
},
|
|
78
72
|
"value": {
|
|
79
|
-
"
|
|
80
|
-
"
|
|
73
|
+
"type": "string",
|
|
74
|
+
"description": "The value of the HTTP header."
|
|
81
75
|
}
|
|
82
76
|
},
|
|
83
77
|
"required": [
|
|
84
78
|
"name",
|
|
85
79
|
"value"
|
|
86
80
|
],
|
|
87
|
-
"additionalProperties": false
|
|
88
|
-
|
|
81
|
+
"additionalProperties": false,
|
|
82
|
+
"description": "A single HTTP header name-value pair."
|
|
83
|
+
},
|
|
84
|
+
"description": "The list of HTTP headers to set for matching requests."
|
|
89
85
|
}
|
|
90
86
|
},
|
|
91
87
|
"required": [
|
|
92
88
|
"match",
|
|
93
89
|
"headers"
|
|
94
90
|
],
|
|
95
|
-
"additionalProperties": false
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"description": "A rule for applying custom HTTP headers to matching requests."
|
|
96
93
|
}
|
|
97
94
|
}
|
|
98
95
|
},
|
|
99
|
-
"additionalProperties": false
|
|
96
|
+
"additionalProperties": false,
|
|
97
|
+
"title": "Routing",
|
|
98
|
+
"description": "Configuration for the `.cloudcannon/routing.json` file. Defines redirects, rewrites, and custom HTTP headers for your site.",
|
|
99
|
+
"id": "type.Routing"
|
|
100
100
|
}
|
|
@@ -1,34 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "Routing",
|
|
4
|
-
"description": "Configuration for the `.cloudcannon/routing.json` file. Defines redirects, rewrites, and custom HTTP headers for your site.",
|
|
5
|
-
"$id": "https://github.com/cloudcannon/configuration-types/releases/latest/download/cloudcannon-routing.schema.json",
|
|
6
3
|
"type": "object",
|
|
7
4
|
"properties": {
|
|
8
5
|
"routes": {
|
|
9
6
|
"description": "An array of route rules for redirects and rewrites. Rules are processed in order; the first matching rule is applied.",
|
|
10
7
|
"type": "array",
|
|
11
8
|
"items": {
|
|
12
|
-
"description": "A single route rule for redirects or rewrites.",
|
|
13
9
|
"type": "object",
|
|
14
10
|
"properties": {
|
|
15
11
|
"from": {
|
|
16
|
-
"description": "The URL pattern to match incoming requests against. CloudCannon routing supports glob-style patterns.",
|
|
17
12
|
"type": "string",
|
|
13
|
+
"description": "The URL pattern to match incoming requests against. CloudCannon routing supports glob-style patterns.",
|
|
18
14
|
"documented": true,
|
|
19
15
|
"title": "from",
|
|
20
16
|
"markdownDescription": "The URL pattern to match incoming requests against. CloudCannon routing supports glob-style patterns."
|
|
21
17
|
},
|
|
22
18
|
"to": {
|
|
23
|
-
"description": "The destination path or URL for this route. Can be a relative path on the same site or an absolute URL for external redirects.",
|
|
24
19
|
"type": "string",
|
|
20
|
+
"description": "The destination path or URL for this route. Can be a relative path on the same site or an absolute URL for external redirects.",
|
|
25
21
|
"documented": true,
|
|
26
22
|
"title": "to",
|
|
27
23
|
"markdownDescription": "The destination path or URL for this route. Can be a relative path on the same site or an absolute URL for external redirects."
|
|
28
24
|
},
|
|
29
25
|
"status": {
|
|
30
|
-
"description": "The HTTP status code for this redirect rule. When using 200, 404, and 410 status codes, `to` must refer to a path on the same Site.",
|
|
31
26
|
"default": 301,
|
|
27
|
+
"description": "The HTTP status code for this redirect rule. When using 200, 404, and 410 status codes, `to` must refer to a path on the same Site.",
|
|
32
28
|
"type": "number",
|
|
33
29
|
"enum": [
|
|
34
30
|
200,
|
|
@@ -66,6 +62,7 @@
|
|
|
66
62
|
"to"
|
|
67
63
|
],
|
|
68
64
|
"additionalProperties": false,
|
|
65
|
+
"description": "A single route rule for redirects or rewrites.",
|
|
69
66
|
"documented": true,
|
|
70
67
|
"title": "routes[*]",
|
|
71
68
|
"markdownDescription": "A single route rule for redirects or rewrites."
|
|
@@ -78,33 +75,30 @@
|
|
|
78
75
|
"description": "An array of header rules to apply custom HTTP headers to responses.",
|
|
79
76
|
"type": "array",
|
|
80
77
|
"items": {
|
|
81
|
-
"description": "A rule for applying custom HTTP headers to matching requests.",
|
|
82
78
|
"type": "object",
|
|
83
79
|
"properties": {
|
|
84
80
|
"match": {
|
|
85
|
-
"description": "A glob pattern to match request paths against. Headers will be applied to responses for matching paths.",
|
|
86
81
|
"type": "string",
|
|
82
|
+
"description": "A glob pattern to match request paths against. Headers will be applied to responses for matching paths.",
|
|
87
83
|
"documented": true,
|
|
88
84
|
"title": "match",
|
|
89
85
|
"markdownDescription": "A glob pattern to match request paths against. Headers will be applied to responses for matching paths."
|
|
90
86
|
},
|
|
91
87
|
"headers": {
|
|
92
|
-
"description": "The list of HTTP headers to set for matching requests.",
|
|
93
88
|
"type": "array",
|
|
94
89
|
"items": {
|
|
95
|
-
"description": "A single HTTP header name-value pair.",
|
|
96
90
|
"type": "object",
|
|
97
91
|
"properties": {
|
|
98
92
|
"name": {
|
|
99
|
-
"description": "The name of the HTTP header to set.",
|
|
100
93
|
"type": "string",
|
|
94
|
+
"description": "The name of the HTTP header to set.",
|
|
101
95
|
"documented": true,
|
|
102
96
|
"title": "name",
|
|
103
97
|
"markdownDescription": "The name of the HTTP header to set."
|
|
104
98
|
},
|
|
105
99
|
"value": {
|
|
106
|
-
"description": "The value of the HTTP header.",
|
|
107
100
|
"type": "string",
|
|
101
|
+
"description": "The value of the HTTP header.",
|
|
108
102
|
"documented": true,
|
|
109
103
|
"title": "value",
|
|
110
104
|
"markdownDescription": "The value of the HTTP header."
|
|
@@ -115,10 +109,12 @@
|
|
|
115
109
|
"value"
|
|
116
110
|
],
|
|
117
111
|
"additionalProperties": false,
|
|
112
|
+
"description": "A single HTTP header name-value pair.",
|
|
118
113
|
"documented": true,
|
|
119
114
|
"title": "headers[*]",
|
|
120
115
|
"markdownDescription": "A single HTTP header name-value pair."
|
|
121
116
|
},
|
|
117
|
+
"description": "The list of HTTP headers to set for matching requests.",
|
|
122
118
|
"documented": true,
|
|
123
119
|
"title": "headers",
|
|
124
120
|
"markdownDescription": "The list of HTTP headers to set for matching requests."
|
|
@@ -129,6 +125,7 @@
|
|
|
129
125
|
"headers"
|
|
130
126
|
],
|
|
131
127
|
"additionalProperties": false,
|
|
128
|
+
"description": "A rule for applying custom HTTP headers to matching requests.",
|
|
132
129
|
"documented": true,
|
|
133
130
|
"title": "headers[*]",
|
|
134
131
|
"markdownDescription": "A rule for applying custom HTTP headers to matching requests."
|
|
@@ -139,6 +136,9 @@
|
|
|
139
136
|
}
|
|
140
137
|
},
|
|
141
138
|
"additionalProperties": false,
|
|
139
|
+
"title": "Routing",
|
|
140
|
+
"description": "Configuration for the `.cloudcannon/routing.json` file. Defines redirects, rewrites, and custom HTTP headers for your site.",
|
|
141
|
+
"$id": "https://github.com/cloudcannon/configuration-types/releases/latest/download/cloudcannon-routing.schema.json",
|
|
142
142
|
"documented": false,
|
|
143
143
|
"markdownDescription": "Configuration for the `.cloudcannon/routing.json` file. Defines redirects, rewrites, and custom HTTP headers for your site."
|
|
144
144
|
}
|