|
9 | 9 | "description": "List of exposed ports.",
|
10 | 10 | "items": {
|
11 | 11 | "type": "object",
|
12 |
| - "required": [ |
13 |
| - "port" |
14 |
| - ], |
| 12 | + "required": ["port"], |
15 | 13 | "properties": {
|
16 | 14 | "port": {
|
17 | 15 | "type": ["number", "string"],
|
|
20 | 18 | },
|
21 | 19 | "onOpen": {
|
22 | 20 | "type": "string",
|
23 |
| - "enum": [ |
24 |
| - "open-browser", |
25 |
| - "open-preview", |
26 |
| - "notify", |
27 |
| - "ignore" |
28 |
| - ], |
| 21 | + "enum": ["open-browser", "open-preview", "notify", "ignore"], |
29 | 22 | "description": "What to do when a service on this port was detected. 'notify' (default) will show a notification asking the user what to do. 'open-browser' will open a new browser tab. 'open-preview' will open in the preview on the right of the IDE. 'ignore' will do nothing."
|
30 | 23 | },
|
31 | 24 | "visibility": {
|
32 | 25 | "type": "string",
|
33 |
| - "enum": [ |
34 |
| - "private", |
35 |
| - "public" |
36 |
| - ], |
| 26 | + "enum": ["private", "public"], |
37 | 27 | "default": "private",
|
38 | 28 | "description": "Whether the port visibility should be private or public. 'private' (default) will only allow users with workspace access to access the port. 'public' will allow everyone with the port URL to access the port."
|
39 | 29 | },
|
|
43 | 33 | },
|
44 | 34 | "protocol": {
|
45 | 35 | "type": "string",
|
46 |
| - "enum": [ |
47 |
| - "http", |
48 |
| - "TCP", |
49 |
| - "UDP" |
50 |
| - ], |
| 36 | + "enum": ["http", "TCP", "UDP"], |
51 | 37 | "deprecationMessage": "The 'protocol' property is deprecated.",
|
52 | 38 | "description": "The protocol to be used. (deprecated)"
|
53 | 39 | },
|
|
92 | 78 | },
|
93 | 79 | "openIn": {
|
94 | 80 | "type": "string",
|
95 |
| - "enum": [ |
96 |
| - "bottom", |
97 |
| - "main", |
98 |
| - "left", |
99 |
| - "right" |
100 |
| - ], |
| 81 | + "enum": ["bottom", "main", "left", "right"], |
101 | 82 | "description": "The panel/area where to open the terminal. Default is 'bottom' panel."
|
102 | 83 | },
|
103 | 84 | "openMode": {
|
104 | 85 | "type": "string",
|
105 |
| - "enum": [ |
106 |
| - "split-left", |
107 |
| - "split-right", |
108 |
| - "tab-before", |
109 |
| - "tab-after" |
110 |
| - ], |
| 86 | + "enum": ["split-left", "split-right", "tab-before", "tab-after"], |
111 | 87 | "description": "The opening mode. Default is 'tab-after'."
|
112 | 88 | }
|
113 | 89 | },
|
114 | 90 | "additionalProperties": false
|
115 | 91 | }
|
116 | 92 | },
|
117 | 93 | "image": {
|
118 |
| - "type": [ |
119 |
| - "object", |
120 |
| - "string" |
121 |
| - ], |
| 94 | + "type": ["object", "string"], |
122 | 95 | "description": "The Docker image to run your workspace in.",
|
123 | 96 | "default": "gitpod/workspace-full",
|
124 |
| - "required": [ |
125 |
| - "file" |
126 |
| - ], |
| 97 | + "required": ["file"], |
127 | 98 | "properties": {
|
128 | 99 | "file": {
|
129 | 100 | "type": "string",
|
|
141 | 112 | "description": "List of additional repositories that are part of this project.",
|
142 | 113 | "items": {
|
143 | 114 | "type": "object",
|
144 |
| - "required": [ |
145 |
| - "url" |
146 |
| - ], |
| 115 | + "required": ["url"], |
147 | 116 | "properties": {
|
148 | 117 | "url": {
|
149 | 118 | "type": ["string"],
|
|
170 | 139 | "description": "Path to where the IDE's workspace should be opened. Supports vscode's `*.code-workspace` files."
|
171 | 140 | },
|
172 | 141 | "gitConfig": {
|
173 |
| - "type": [ |
174 |
| - "object" |
175 |
| - ], |
| 142 | + "type": ["object"], |
176 | 143 | "description": "Git config values should be provided in pairs. E.g. `core.autocrlf: input`. See https://git-scm.com/docs/git-config#_values.",
|
177 | 144 | "additionalProperties": {
|
178 | 145 | "type": "string"
|
|
183 | 150 | "description": "Configures Gitpod's GitHub app",
|
184 | 151 | "properties": {
|
185 | 152 | "prebuilds": {
|
186 |
| - "type": [ |
187 |
| - "boolean", |
188 |
| - "object" |
189 |
| - ], |
| 153 | + "type": ["boolean", "object"], |
190 | 154 | "description": "Set to true to enable workspace prebuilds, false to disable them. Defaults to true.",
|
191 | 155 | "properties": {
|
192 | 156 | "master": {
|
193 | 157 | "type": "boolean",
|
194 |
| - "description": "Enable prebuilds for the default branch (typically master). Defaults to true." |
| 158 | + "description": "Enable prebuilds for the default branch (typically master). Defaults to true.", |
| 159 | + "deprecationMessage": "Deprecated. Please use `defaultBranch` instead. See https://www.gitpod.io/docs/configure/projects/prebuilds#github-specific-configuration." |
| 160 | + }, |
| 161 | + "defaultBranch": { |
| 162 | + "type": "boolean", |
| 163 | + "description": "Enable prebuilds for the default branch (typically main). Defaults to true." |
195 | 164 | },
|
196 | 165 | "branches": {
|
197 | 166 | "type": "boolean",
|
|
210 | 179 | "description": "Add a Review in Gitpod badge to pull requests. Defaults to true."
|
211 | 180 | },
|
212 | 181 | "addCheck": {
|
213 |
| - "type": [ |
214 |
| - "boolean", |
215 |
| - "string" |
216 |
| - ], |
217 |
| - "enum": [ |
218 |
| - true, |
219 |
| - false, |
220 |
| - "prevent-merge-on-error" |
221 |
| - ], |
| 182 | + "type": ["boolean", "string"], |
| 183 | + "enum": [true, false, "prevent-merge-on-error"], |
222 | 184 | "description": "Add a commit check to pull requests. Set to 'fail-on-error' if you want broken prebuilds to block merging. Defaults to true."
|
223 | 185 | },
|
224 | 186 | "addLabel": {
|
225 |
| - "type": [ |
226 |
| - "boolean", |
227 |
| - "string" |
228 |
| - ], |
| 187 | + "type": ["boolean", "string"], |
229 | 188 | "description": "Add a label to a PR when it's prebuilt. Set to true to use the default label (prebuilt-in-gitpod) or set to a string to use a different label name. This is a beta feature and may be unreliable. Defaults to false."
|
230 | 189 | }
|
231 | 190 | }
|
|
339 | 298 | "properties": {
|
340 | 299 | "version": {
|
341 | 300 | "type": "string",
|
342 |
| - "enum": [ |
343 |
| - "stable", |
344 |
| - "latest", |
345 |
| - "both" |
346 |
| - ], |
| 301 | + "enum": ["stable", "latest", "both"], |
347 | 302 | "description": "Whether only stable, latest or both versions should be warmed up. Default is stable only."
|
348 | 303 | }
|
349 | 304 | }
|
|
0 commit comments