|
21 | 21 | ], |
22 | 22 | "definitions": { |
23 | 23 | "allowDependencyFailure": { |
24 | | - "type": "boolean", |
| 24 | + "enum": [true, false, "true", "false"], |
25 | 25 | "description": "Whether to proceed with this step and further steps if a step named in the depends_on attribute fails", |
26 | 26 | "default": false |
27 | 27 | }, |
|
131 | 131 | "type": "object", |
132 | 132 | "properties": { |
133 | 133 | "paths": { |
134 | | - "anyOf": [ |
135 | | - { "type": "string" }, |
136 | | - { |
137 | | - "type": "array", |
138 | | - "items": { "type": "string" } |
139 | | - } |
140 | | - ] |
| 134 | + "type": "array", |
| 135 | + "items": { "type": "string" } |
141 | 136 | }, |
142 | 137 | "size": { |
143 | 138 | "type": "string", |
|
161 | 156 | ] |
162 | 157 | }, |
163 | 158 | "cancelOnBuildFailing": { |
164 | | - "type": "boolean", |
| 159 | + "enum": [true, false, "true", "false"], |
165 | 160 | "description": "Whether to cancel the job as soon as the build is marked as failing", |
166 | 161 | "default": false |
167 | 162 | }, |
|
180 | 175 | "properties": { |
181 | 176 | "step": { "type": "string" }, |
182 | 177 | "allow_failure": { |
183 | | - "type": "boolean", |
| 178 | + "enum": [true, false, "true", "false"], |
184 | 179 | "default": false |
185 | 180 | } |
186 | 181 | }, |
|
207 | 202 | "type": "string", |
208 | 203 | "description": "A unique identifier for a step, must not resemble a UUID", |
209 | 204 | "examples": [ "deploy-staging", "test-integration" ], |
210 | | - "pattern": "^(?!^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$).*$" |
| 205 | + "not": { |
| 206 | + "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" |
| 207 | + } |
211 | 208 | }, |
212 | 209 | "label": { |
213 | 210 | "type": "string", |
|
311 | 308 | "description": "GitHub commit status name", |
312 | 309 | "type": "string" |
313 | 310 | } |
314 | | - } |
| 311 | + }, |
| 312 | + "additionalProperties": false |
315 | 313 | }, |
316 | 314 | "if": { |
317 | 315 | "$ref": "#/definitions/if" |
|
379 | 377 | ] |
380 | 378 | }, |
381 | 379 | "required": { |
382 | | - "type": "boolean", |
| 380 | + "enum": [true, false, "true", "false"], |
383 | 381 | "default": true, |
384 | 382 | "description": "Whether the field is required for form submission" |
385 | 383 | }, |
|
435 | 433 | ] |
436 | 434 | }, |
437 | 435 | "multiple": { |
438 | | - "type": "boolean", |
| 436 | + "enum": [true, false, "true", "false"], |
439 | 437 | "description": "Whether more than one option may be selected", |
440 | 438 | "default": false |
441 | 439 | }, |
442 | 440 | "options": { |
443 | 441 | "type": "array", |
| 442 | + "minItems": 1, |
444 | 443 | "items": { |
445 | 444 | "type": "object", |
446 | 445 | "properties": { |
|
462 | 461 | ] |
463 | 462 | }, |
464 | 463 | "required": { |
465 | | - "type": "boolean", |
| 464 | + "enum": [true, false, "true", "false"], |
466 | 465 | "default": true, |
467 | 466 | "description": "Whether the field is required for form submission" |
468 | 467 | } |
|
475 | 474 | } |
476 | 475 | }, |
477 | 476 | "required": { |
478 | | - "type": "boolean", |
| 477 | + "enum": [true, false, "true", "false"], |
479 | 478 | "default": true, |
480 | 479 | "description": "Whether the field is required for form submission" |
481 | 480 | } |
|
508 | 507 | { "type": "boolean" }, |
509 | 508 | { "type": "string" } |
510 | 509 | ], |
511 | | - "description": "Whether this step should be skipped. You can specify a reason for using a string.", |
| 510 | + "description": "Whether this step should be skipped. Passing a string provides a reason for skipping this command", |
512 | 511 | "examples": [ |
513 | 512 | true, |
514 | 513 | false, |
|
519 | 518 | "description": "The conditions for marking the step as a soft-fail.", |
520 | 519 | "anyOf": [ |
521 | 520 | { |
522 | | - "type": "boolean" |
| 521 | + "enum": [true, false, "true", "false"] |
523 | 522 | }, |
524 | 523 | { |
525 | 524 | "type": "array", |
|
555 | 554 | }, |
556 | 555 | "blocked_state": { |
557 | 556 | "type": "string", |
| 557 | + "default": "passed", |
558 | 558 | "description": "The state that the build is set to when the build is blocked by this block step", |
559 | 559 | "enum": [ "passed", "failed", "running" ] |
560 | 560 | }, |
|
581 | 581 | "deprecated": true |
582 | 582 | }, |
583 | 583 | "label": { |
584 | | - "$ref": "#/definitions/label" |
| 584 | + "$ref": "#/definitions/blockStep/properties/block" |
585 | 585 | }, |
586 | 586 | "name": { |
587 | | - "$ref": "#/definitions/label" |
| 587 | + "$ref": "#/definitions/blockStep/properties/block" |
588 | 588 | }, |
589 | 589 | "prompt": { |
590 | 590 | "$ref": "#/definitions/prompt" |
|
643 | 643 | "deprecated": true |
644 | 644 | }, |
645 | 645 | "label": { |
646 | | - "$ref": "#/definitions/label" |
| 646 | + "$ref": "#/definitions/inputStep/properties/input" |
647 | 647 | }, |
648 | 648 | "name": { |
649 | | - "$ref": "#/definitions/label" |
| 649 | + "$ref": "#/definitions/inputStep/properties/input" |
650 | 650 | }, |
651 | 651 | "prompt": { |
652 | 652 | "$ref": "#/definitions/prompt" |
|
703 | 703 | "cache": { |
704 | 704 | "$ref": "#/definitions/cache" |
705 | 705 | }, |
706 | | - "cache": { |
707 | | - "$ref": "#/definitions/cache" |
708 | | - }, |
709 | 706 | "cancel_on_build_failing": { |
710 | 707 | "$ref": "#/definitions/cancelOnBuildFailing" |
711 | 708 | }, |
|
880 | 877 | ] |
881 | 878 | }, |
882 | 879 | "name": { |
883 | | - "$ref": "#/definitions/label" |
| 880 | + "$ref": "#/definitions/commandStep/properties/label" |
884 | 881 | }, |
885 | 882 | "notify": { |
886 | 883 | "type": "array", |
|
923 | 920 | "message": { |
924 | 921 | "type": "string" |
925 | 922 | } |
926 | | - } |
| 923 | + }, |
| 924 | + "additionalProperties": false |
927 | 925 | } |
928 | 926 | ] |
929 | 927 | }, |
|
943 | 941 | "description": "GitHub commit status name", |
944 | 942 | "type": "string" |
945 | 943 | } |
946 | | - } |
| 944 | + }, |
| 945 | + "additionalProperties": false |
947 | 946 | }, |
948 | 947 | "if": { |
949 | 948 | "$ref": "#/definitions/if" |
|
1015 | 1014 | "automatic": { |
1016 | 1015 | "anyOf": [ |
1017 | 1016 | { |
1018 | | - "type": ["boolean", "string"], |
1019 | | - "pattern": "^(true|false)$" |
| 1017 | + "enum": [true, false, "true", "false"] |
1020 | 1018 | }, |
1021 | 1019 | { |
1022 | 1020 | "$ref": "#/definitions/automaticRetry" |
|
1040 | 1038 | "description": "Whether to allow a job to be retried manually", |
1041 | 1039 | "anyOf": [ |
1042 | 1040 | { |
1043 | | - "type": ["boolean", "string"], |
1044 | | - "pattern": "^(true|false)$" |
| 1041 | + "enum": [true, false, "true", "false"] |
1045 | 1042 | }, |
1046 | 1043 | { |
1047 | 1044 | "type": "object", |
1048 | 1045 | "properties": { |
1049 | 1046 | "allowed": { |
1050 | | - "type": ["boolean", "string"], |
1051 | | - "pattern": "^(true|false)$", |
| 1047 | + "enum": [true, false, "true", "false"], |
1052 | 1048 | "description": "Whether or not this job can be retried manually", |
1053 | 1049 | "default": true |
1054 | 1050 | }, |
1055 | 1051 | "permit_on_passed": { |
1056 | | - "type": ["boolean", "string"], |
1057 | | - "pattern": "^(true|false)$", |
| 1052 | + "enum": [true, false, "true", "false"], |
1058 | 1053 | "description": "Whether or not this job can be retried after it has passed", |
1059 | 1054 | "default": true |
1060 | 1055 | }, |
|
1068 | 1063 | }, |
1069 | 1064 | "additionalProperties": false |
1070 | 1065 | } |
1071 | | - ] |
| 1066 | + ], |
| 1067 | + "default": true |
1072 | 1068 | } |
1073 | | - } |
| 1069 | + }, |
| 1070 | + "additionalProperties": false |
1074 | 1071 | }, |
1075 | 1072 | "skip": { |
1076 | 1073 | "$ref": "#/definitions/skip" |
|
1118 | 1115 | "allow_dependency_failure": { |
1119 | 1116 | "$ref": "#/definitions/allowDependencyFailure" |
1120 | 1117 | }, |
| 1118 | + "branches": { |
| 1119 | + "$ref": "#/definitions/branches" |
| 1120 | + }, |
1121 | 1121 | "continue_on_failure": { |
1122 | 1122 | "description": "Continue to the next steps, even if the previous group of steps fail", |
1123 | | - "type": "boolean" |
| 1123 | + "enum": [true, false, "true", "false"], |
| 1124 | + "default": false |
1124 | 1125 | }, |
1125 | 1126 | "depends_on": { |
1126 | 1127 | "$ref": "#/definitions/dependsOn" |
|
1132 | 1133 | "$ref": "#/definitions/key" |
1133 | 1134 | }, |
1134 | 1135 | "label": { |
1135 | | - "$ref": "#/definitions/label" |
| 1136 | + "$ref": "#/definitions/waitStep/properties/wait" |
1136 | 1137 | }, |
1137 | 1138 | "name": { |
1138 | | - "$ref": "#/definitions/label" |
| 1139 | + "$ref": "#/definitions/waitStep/properties/wait" |
1139 | 1140 | }, |
1140 | 1141 | "identifier": { |
1141 | 1142 | "$ref": "#/definitions/waitStep/properties/key" |
|
1150 | 1151 | }, |
1151 | 1152 | "wait": { |
1152 | 1153 | "description": "Waits for previous steps to pass before continuing", |
1153 | | - "anyOf": [ |
1154 | | - { "type": "null" }, |
1155 | | - { "type": "string", "enum": [ "" ] } |
1156 | | - ] |
| 1154 | + "type": ["string", "null"] |
1157 | 1155 | }, |
1158 | 1156 | "waiter": { |
1159 | | - "anyOf": [ |
1160 | | - { "type": "null" }, |
1161 | | - { "type": "string", "enum": [ "" ] } |
1162 | | - ] |
| 1157 | + "type": ["string", "null"] |
1163 | 1158 | } |
1164 | 1159 | }, |
1165 | 1160 | "additionalProperties": false |
|
1184 | 1179 | "$ref": "#/definitions/allowDependencyFailure" |
1185 | 1180 | }, |
1186 | 1181 | "async": { |
1187 | | - "type": "boolean", |
| 1182 | + "enum": [true, false, "true", "false"], |
1188 | 1183 | "default": false, |
1189 | 1184 | "description": "Whether to continue the build without waiting for the triggered step to complete" |
1190 | 1185 | }, |
|
1254 | 1249 | "$ref": "#/definitions/label" |
1255 | 1250 | }, |
1256 | 1251 | "name": { |
1257 | | - "$ref": "#/definitions/label" |
| 1252 | + "$ref": "#/definitions/triggerStep/properties/label" |
1258 | 1253 | }, |
1259 | 1254 | "type": { |
1260 | 1255 | "type": "string", |
|
1268 | 1263 | "$ref": "#/definitions/skip" |
1269 | 1264 | }, |
1270 | 1265 | "soft_fail": { |
1271 | | - "$ref": "#/definitions/softFail" |
| 1266 | + "enum": [true, false, "true", "false"], |
| 1267 | + "description": "The conditions for marking the step as a soft-fail.", |
| 1268 | + "default": false |
1272 | 1269 | } |
1273 | 1270 | }, |
1274 | 1271 | "additionalProperties": false, |
|
1313 | 1310 | "$ref": "#/definitions/groupStep/properties/group" |
1314 | 1311 | }, |
1315 | 1312 | "name": { |
1316 | | - "$ref": "#/definitions/groupStep/properties/label" |
| 1313 | + "$ref": "#/definitions/groupStep/properties/group" |
1317 | 1314 | }, |
1318 | 1315 | "allow_dependency_failure": { |
1319 | 1316 | "$ref": "#/definitions/allowDependencyFailure" |
|
1345 | 1342 | ] |
1346 | 1343 | }, |
1347 | 1344 | "minItems": 1 |
1348 | | - }, |
1349 | | - "type": { |
1350 | | - "type": "string", |
1351 | | - "enum": [ "group" ] |
1352 | 1345 | } |
1353 | 1346 | }, |
1354 | | - "required": ["steps"], |
| 1347 | + "required": ["group", "steps"], |
1355 | 1348 | "additionalProperties": false |
1356 | 1349 | } |
1357 | 1350 | }, |
|
0 commit comments