Skip to content

Commit 5a4c9b6

Browse files
[vendor-schemas] automated update (#504)
Co-authored-by: sirosen <[email protected]>
1 parent 84f2329 commit 5a4c9b6

13 files changed

+1863
-1808
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Unreleased
1010

1111
.. vendor-insert-here
1212
13+
- Update vendored schemas (2024-12-15)
14+
1315
0.30.0
1416
------
1517

src/check_jsonschema/builtin_schemas/vendor/azure-pipelines.json

Lines changed: 1753 additions & 1725 deletions
Large diffs are not rendered by default.

src/check_jsonschema/builtin_schemas/vendor/buildkite.json

Lines changed: 51 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
],
2222
"definitions": {
2323
"allowDependencyFailure": {
24-
"type": "boolean",
24+
"enum": [true, false, "true", "false"],
2525
"description": "Whether to proceed with this step and further steps if a step named in the depends_on attribute fails",
2626
"default": false
2727
},
@@ -131,13 +131,8 @@
131131
"type": "object",
132132
"properties": {
133133
"paths": {
134-
"anyOf": [
135-
{ "type": "string" },
136-
{
137-
"type": "array",
138-
"items": { "type": "string" }
139-
}
140-
]
134+
"type": "array",
135+
"items": { "type": "string" }
141136
},
142137
"size": {
143138
"type": "string",
@@ -161,7 +156,7 @@
161156
]
162157
},
163158
"cancelOnBuildFailing": {
164-
"type": "boolean",
159+
"enum": [true, false, "true", "false"],
165160
"description": "Whether to cancel the job as soon as the build is marked as failing",
166161
"default": false
167162
},
@@ -180,7 +175,7 @@
180175
"properties": {
181176
"step": { "type": "string" },
182177
"allow_failure": {
183-
"type": "boolean",
178+
"enum": [true, false, "true", "false"],
184179
"default": false
185180
}
186181
},
@@ -207,7 +202,9 @@
207202
"type": "string",
208203
"description": "A unique identifier for a step, must not resemble a UUID",
209204
"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+
}
211208
},
212209
"label": {
213210
"type": "string",
@@ -311,7 +308,8 @@
311308
"description": "GitHub commit status name",
312309
"type": "string"
313310
}
314-
}
311+
},
312+
"additionalProperties": false
315313
},
316314
"if": {
317315
"$ref": "#/definitions/if"
@@ -379,7 +377,7 @@
379377
]
380378
},
381379
"required": {
382-
"type": "boolean",
380+
"enum": [true, false, "true", "false"],
383381
"default": true,
384382
"description": "Whether the field is required for form submission"
385383
},
@@ -435,12 +433,13 @@
435433
]
436434
},
437435
"multiple": {
438-
"type": "boolean",
436+
"enum": [true, false, "true", "false"],
439437
"description": "Whether more than one option may be selected",
440438
"default": false
441439
},
442440
"options": {
443441
"type": "array",
442+
"minItems": 1,
444443
"items": {
445444
"type": "object",
446445
"properties": {
@@ -462,7 +461,7 @@
462461
]
463462
},
464463
"required": {
465-
"type": "boolean",
464+
"enum": [true, false, "true", "false"],
466465
"default": true,
467466
"description": "Whether the field is required for form submission"
468467
}
@@ -475,7 +474,7 @@
475474
}
476475
},
477476
"required": {
478-
"type": "boolean",
477+
"enum": [true, false, "true", "false"],
479478
"default": true,
480479
"description": "Whether the field is required for form submission"
481480
}
@@ -508,7 +507,7 @@
508507
{ "type": "boolean" },
509508
{ "type": "string" }
510509
],
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",
512511
"examples": [
513512
true,
514513
false,
@@ -519,7 +518,7 @@
519518
"description": "The conditions for marking the step as a soft-fail.",
520519
"anyOf": [
521520
{
522-
"type": "boolean"
521+
"enum": [true, false, "true", "false"]
523522
},
524523
{
525524
"type": "array",
@@ -555,6 +554,7 @@
555554
},
556555
"blocked_state": {
557556
"type": "string",
557+
"default": "passed",
558558
"description": "The state that the build is set to when the build is blocked by this block step",
559559
"enum": [ "passed", "failed", "running" ]
560560
},
@@ -581,10 +581,10 @@
581581
"deprecated": true
582582
},
583583
"label": {
584-
"$ref": "#/definitions/label"
584+
"$ref": "#/definitions/blockStep/properties/block"
585585
},
586586
"name": {
587-
"$ref": "#/definitions/label"
587+
"$ref": "#/definitions/blockStep/properties/block"
588588
},
589589
"prompt": {
590590
"$ref": "#/definitions/prompt"
@@ -643,10 +643,10 @@
643643
"deprecated": true
644644
},
645645
"label": {
646-
"$ref": "#/definitions/label"
646+
"$ref": "#/definitions/inputStep/properties/input"
647647
},
648648
"name": {
649-
"$ref": "#/definitions/label"
649+
"$ref": "#/definitions/inputStep/properties/input"
650650
},
651651
"prompt": {
652652
"$ref": "#/definitions/prompt"
@@ -703,9 +703,6 @@
703703
"cache": {
704704
"$ref": "#/definitions/cache"
705705
},
706-
"cache": {
707-
"$ref": "#/definitions/cache"
708-
},
709706
"cancel_on_build_failing": {
710707
"$ref": "#/definitions/cancelOnBuildFailing"
711708
},
@@ -880,7 +877,7 @@
880877
]
881878
},
882879
"name": {
883-
"$ref": "#/definitions/label"
880+
"$ref": "#/definitions/commandStep/properties/label"
884881
},
885882
"notify": {
886883
"type": "array",
@@ -923,7 +920,8 @@
923920
"message": {
924921
"type": "string"
925922
}
926-
}
923+
},
924+
"additionalProperties": false
927925
}
928926
]
929927
},
@@ -943,7 +941,8 @@
943941
"description": "GitHub commit status name",
944942
"type": "string"
945943
}
946-
}
944+
},
945+
"additionalProperties": false
947946
},
948947
"if": {
949948
"$ref": "#/definitions/if"
@@ -1015,8 +1014,7 @@
10151014
"automatic": {
10161015
"anyOf": [
10171016
{
1018-
"type": ["boolean", "string"],
1019-
"pattern": "^(true|false)$"
1017+
"enum": [true, false, "true", "false"]
10201018
},
10211019
{
10221020
"$ref": "#/definitions/automaticRetry"
@@ -1040,21 +1038,18 @@
10401038
"description": "Whether to allow a job to be retried manually",
10411039
"anyOf": [
10421040
{
1043-
"type": ["boolean", "string"],
1044-
"pattern": "^(true|false)$"
1041+
"enum": [true, false, "true", "false"]
10451042
},
10461043
{
10471044
"type": "object",
10481045
"properties": {
10491046
"allowed": {
1050-
"type": ["boolean", "string"],
1051-
"pattern": "^(true|false)$",
1047+
"enum": [true, false, "true", "false"],
10521048
"description": "Whether or not this job can be retried manually",
10531049
"default": true
10541050
},
10551051
"permit_on_passed": {
1056-
"type": ["boolean", "string"],
1057-
"pattern": "^(true|false)$",
1052+
"enum": [true, false, "true", "false"],
10581053
"description": "Whether or not this job can be retried after it has passed",
10591054
"default": true
10601055
},
@@ -1068,9 +1063,11 @@
10681063
},
10691064
"additionalProperties": false
10701065
}
1071-
]
1066+
],
1067+
"default": true
10721068
}
1073-
}
1069+
},
1070+
"additionalProperties": false
10741071
},
10751072
"skip": {
10761073
"$ref": "#/definitions/skip"
@@ -1118,9 +1115,13 @@
11181115
"allow_dependency_failure": {
11191116
"$ref": "#/definitions/allowDependencyFailure"
11201117
},
1118+
"branches": {
1119+
"$ref": "#/definitions/branches"
1120+
},
11211121
"continue_on_failure": {
11221122
"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
11241125
},
11251126
"depends_on": {
11261127
"$ref": "#/definitions/dependsOn"
@@ -1132,10 +1133,10 @@
11321133
"$ref": "#/definitions/key"
11331134
},
11341135
"label": {
1135-
"$ref": "#/definitions/label"
1136+
"$ref": "#/definitions/waitStep/properties/wait"
11361137
},
11371138
"name": {
1138-
"$ref": "#/definitions/label"
1139+
"$ref": "#/definitions/waitStep/properties/wait"
11391140
},
11401141
"identifier": {
11411142
"$ref": "#/definitions/waitStep/properties/key"
@@ -1150,16 +1151,10 @@
11501151
},
11511152
"wait": {
11521153
"description": "Waits for previous steps to pass before continuing",
1153-
"anyOf": [
1154-
{ "type": "null" },
1155-
{ "type": "string", "enum": [ "" ] }
1156-
]
1154+
"type": ["string", "null"]
11571155
},
11581156
"waiter": {
1159-
"anyOf": [
1160-
{ "type": "null" },
1161-
{ "type": "string", "enum": [ "" ] }
1162-
]
1157+
"type": ["string", "null"]
11631158
}
11641159
},
11651160
"additionalProperties": false
@@ -1184,7 +1179,7 @@
11841179
"$ref": "#/definitions/allowDependencyFailure"
11851180
},
11861181
"async": {
1187-
"type": "boolean",
1182+
"enum": [true, false, "true", "false"],
11881183
"default": false,
11891184
"description": "Whether to continue the build without waiting for the triggered step to complete"
11901185
},
@@ -1254,7 +1249,7 @@
12541249
"$ref": "#/definitions/label"
12551250
},
12561251
"name": {
1257-
"$ref": "#/definitions/label"
1252+
"$ref": "#/definitions/triggerStep/properties/label"
12581253
},
12591254
"type": {
12601255
"type": "string",
@@ -1268,7 +1263,9 @@
12681263
"$ref": "#/definitions/skip"
12691264
},
12701265
"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
12721269
}
12731270
},
12741271
"additionalProperties": false,
@@ -1313,7 +1310,7 @@
13131310
"$ref": "#/definitions/groupStep/properties/group"
13141311
},
13151312
"name": {
1316-
"$ref": "#/definitions/groupStep/properties/label"
1313+
"$ref": "#/definitions/groupStep/properties/group"
13171314
},
13181315
"allow_dependency_failure": {
13191316
"$ref": "#/definitions/allowDependencyFailure"
@@ -1345,13 +1342,9 @@
13451342
]
13461343
},
13471344
"minItems": 1
1348-
},
1349-
"type": {
1350-
"type": "string",
1351-
"enum": [ "group" ]
13521345
}
13531346
},
1354-
"required": ["steps"],
1347+
"required": ["group", "steps"],
13551348
"additionalProperties": false
13561349
}
13571350
},

src/check_jsonschema/builtin_schemas/vendor/circle-ci.json

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,38 @@
10711071
"description": "Jobs are run in parallel by default, so you must explicitly require any dependencies by their job name.",
10721072
"type": "array",
10731073
"items": {
1074-
"type": "string"
1074+
"oneOf": [
1075+
{
1076+
"description": "A dependency defined by their job name.",
1077+
"type": "string"
1078+
},
1079+
{
1080+
"description": "A dependency defined by their job name, and required statuses.",
1081+
"type": "object",
1082+
"minProperties": 1,
1083+
"maxProperties": 1,
1084+
"patternProperties": {
1085+
"^[A-Za-z][A-Za-z\\s\\d_-]*$": {
1086+
"oneOf": [
1087+
{
1088+
"description": "A status that the job must have to satisfy the dependency.",
1089+
"type": "string",
1090+
"enum": ["success", "failed", "canceled"]
1091+
},
1092+
{
1093+
"description": "A list of statuses that the job must have one of to satisfy the dependency.",
1094+
"type": "array",
1095+
"minLength": 1,
1096+
"items": {
1097+
"type": "string",
1098+
"enum": ["success", "failed", "canceled"]
1099+
}
1100+
}
1101+
]
1102+
}
1103+
}
1104+
}
1105+
]
10751106
}
10761107
},
10771108
"name": {

0 commit comments

Comments
 (0)