Skip to content

Commit

Permalink
Update vendored schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
sirosen committed Nov 29, 2024
1 parent 46486cd commit c906a72
Show file tree
Hide file tree
Showing 11 changed files with 181 additions and 190 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Unreleased

.. vendor-insert-here
- Update vendored schemas (2024-11-24)
- Update vendored schemas (2024-11-29)

0.29.4
------
Expand Down
155 changes: 82 additions & 73 deletions src/check_jsonschema/builtin_schemas/vendor/buildkite.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@
"enum": [ "*" ]
},
{
"type": "number"
"type": "integer"
},
{
"type": "array",
"items": { "type": "number" }
"items": { "type": "integer" }
}
]
},
Expand Down Expand Up @@ -198,11 +198,6 @@
{ "NODE_ENV": "test" }
]
},
"identifier": {
"type": "string",
"description": "A string identifier",
"examples": [ "an-id" ]
},
"if": {
"type": "string",
"description": "A boolean expression that omits the step when false",
Expand All @@ -211,7 +206,8 @@
"key": {
"type": "string",
"description": "A unique identifier for a step, must not resemble a UUID",
"examples": [ "deploy-staging", "test-integration" ]
"examples": [ "deploy-staging", "test-integration" ],
"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}$).*$"
},
"label": {
"type": "string",
Expand Down Expand Up @@ -528,25 +524,21 @@
{
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"exit_status": {
"description": "The exit status number that will cause this job to soft-fail",
"anyOf": [
{
"type": "string",
"enum": [ "*" ]
},
{
"type": "number"
}
]
"type": "object",
"properties": {
"exit_status": {
"description": "The exit status number that will cause this job to soft-fail",
"anyOf": [
{
"type": "string",
"enum": [ "*" ]
},
{
"type": "integer"
}
}
]
}
]
}
}
}
]
Expand Down Expand Up @@ -575,18 +567,19 @@
"fields": {
"$ref": "#/definitions/fields"
},
"id": {
"$ref": "#/definitions/identifier"
},
"identifier": {
"$ref": "#/definitions/identifier"
},
"if": {
"$ref": "#/definitions/if"
},
"key": {
"$ref": "#/definitions/key"
},
"identifier": {
"$ref": "#/definitions/blockStep/properties/key"
},
"id": {
"$ref": "#/definitions/blockStep/properties/key",
"deprecated": true
},
"label": {
"$ref": "#/definitions/label"
},
Expand Down Expand Up @@ -636,18 +629,19 @@
"fields": {
"$ref": "#/definitions/fields"
},
"id": {
"$ref": "#/definitions/identifier"
},
"identifier": {
"$ref": "#/definitions/identifier"
},
"if": {
"$ref": "#/definitions/if"
},
"key": {
"$ref": "#/definitions/key"
},
"identifier": {
"$ref": "#/definitions/inputStep/properties/key"
},
"id": {
"$ref": "#/definitions/inputStep/properties/key",
"deprecated": true
},
"label": {
"$ref": "#/definitions/label"
},
Expand Down Expand Up @@ -754,18 +748,19 @@
"env": {
"$ref": "#/definitions/env"
},
"id": {
"$ref": "#/definitions/identifier"
},
"identifier": {
"$ref": "#/definitions/identifier"
},
"if": {
"$ref": "#/definitions/if"
},
"key": {
"$ref": "#/definitions/key"
},
"identifier": {
"$ref": "#/definitions/commandStep/properties/key"
},
"id": {
"$ref": "#/definitions/commandStep/properties/key",
"deprecated": true
},
"label": {
"$ref": "#/definitions/label"
},
Expand Down Expand Up @@ -1130,18 +1125,25 @@
"depends_on": {
"$ref": "#/definitions/dependsOn"
},
"id": {
"$ref": "#/definitions/identifier"
},
"identifier": {
"$ref": "#/definitions/identifier"
},
"if": {
"$ref": "#/definitions/if"
},
"key": {
"$ref": "#/definitions/key"
},
"label": {
"$ref": "#/definitions/label"
},
"name": {
"$ref": "#/definitions/label"
},
"identifier": {
"$ref": "#/definitions/waitStep/properties/key"
},
"id": {
"$ref": "#/definitions/waitStep/properties/key",
"deprecated": true
},
"type": {
"type": "string",
"enum": [ "wait", "waiter" ]
Expand Down Expand Up @@ -1235,18 +1237,19 @@
"depends_on": {
"$ref": "#/definitions/dependsOn"
},
"id": {
"$ref": "#/definitions/identifier"
},
"identifier": {
"$ref": "#/definitions/identifier"
},
"if": {
"$ref": "#/definitions/if"
},
"key": {
"$ref": "#/definitions/key"
},
"identifier": {
"$ref": "#/definitions/triggerStep/properties/key"
},
"id": {
"$ref": "#/definitions/triggerStep/properties/key",
"deprecated": true
},
"label": {
"$ref": "#/definitions/label"
},
Expand All @@ -1268,7 +1271,10 @@
"$ref": "#/definitions/softFail"
}
},
"additionalProperties": false
"additionalProperties": false,
"required": [
"trigger"
]
},
"nestedTriggerStep": {
"type": "object",
Expand All @@ -1290,18 +1296,19 @@
"description": "The name to give to this group of steps",
"examples": [ "Tests" ]
},
"id": {
"$ref": "#/definitions/identifier"
},
"identifier": {
"$ref": "#/definitions/identifier"
},
"if": {
"$ref": "#/definitions/if"
},
"key": {
"$ref": "#/definitions/key"
},
"identifier": {
"$ref": "#/definitions/groupStep/properties/key"
},
"id": {
"$ref": "#/definitions/groupStep/properties/key",
"deprecated": true
},
"label": {
"$ref": "#/definitions/groupStep/properties/group"
},
Expand All @@ -1322,27 +1329,29 @@
"description": "A list of steps",
"items": {
"anyOf": [
{ "$ref": "#/definitions/stringBlockStep" },
{ "$ref": "#/definitions/blockStep" },
{ "$ref": "#/definitions/commandStep" },
{ "$ref": "#/definitions/nestedCommandStep" },
{ "$ref": "#/definitions/triggerStep" },
{ "$ref": "#/definitions/nestedTriggerStep" },
{ "$ref": "#/definitions/stringInputStep" },
{ "$ref": "#/definitions/nestedBlockStep" },
{ "$ref": "#/definitions/stringBlockStep" },
{ "$ref": "#/definitions/inputStep" },
{ "$ref": "#/definitions/nestedInputStep" },
{ "$ref": "#/definitions/stringWaitStep" },
{ "$ref": "#/definitions/stringInputStep" },
{ "$ref": "#/definitions/commandStep" },
{ "$ref": "#/definitions/nestedCommandStep" },
{ "$ref": "#/definitions/waitStep" },
{ "$ref": "#/definitions/nestedWaitStep" }
{ "$ref": "#/definitions/nestedWaitStep" },
{ "$ref": "#/definitions/stringWaitStep" },
{ "$ref": "#/definitions/triggerStep" },
{ "$ref": "#/definitions/nestedTriggerStep" }
]
},
"minSize": 1
"minItems": 1
},
"type": {
"type": [ "string" ],
"type": "string",
"enum": [ "group" ]
}
},
"required": ["steps"],
"additionalProperties": false
}
},
Expand All @@ -1369,9 +1378,9 @@
{ "$ref": "#/definitions/stringInputStep" },
{ "$ref": "#/definitions/commandStep" },
{ "$ref": "#/definitions/nestedCommandStep" },
{ "$ref": "#/definitions/stringWaitStep" },
{ "$ref": "#/definitions/waitStep" },
{ "$ref": "#/definitions/nestedWaitStep" },
{ "$ref": "#/definitions/stringWaitStep" },
{ "$ref": "#/definitions/triggerStep" },
{ "$ref": "#/definitions/nestedTriggerStep" },
{ "$ref": "#/definitions/groupStep" }
Expand Down
20 changes: 2 additions & 18 deletions src/check_jsonschema/builtin_schemas/vendor/mergify.json
Original file line number Diff line number Diff line change
Expand Up @@ -884,9 +884,6 @@
},
{
"const": "from_requested_reviewers",
"enum": [
"from_requested_reviewers"
],
"type": "string"
}
],
Expand All @@ -908,9 +905,6 @@
},
{
"const": "from_requested_reviewers",
"enum": [
"from_requested_reviewers"
],
"type": "string"
}
],
Expand Down Expand Up @@ -1646,16 +1640,10 @@
"anyOf": [
{
"const": "NONE",
"enum": [
"NONE"
],
"type": "string"
},
{
"const": "PR_MERGED",
"enum": [
"PR_MERGED"
],
"type": "string"
},
{
Expand Down Expand Up @@ -2511,9 +2499,6 @@
"anyOf": [
{
"const": "fast-forward",
"enum": [
"fast-forward"
],
"type": "string"
},
{
Expand All @@ -2525,6 +2510,7 @@
"title": "Queue Branch Merge Method"
},
"queue_branch_prefix": {
"default": "mergify/merge-queue/",
"title": "Queue Branch Prefix",
"type": "string"
},
Expand Down Expand Up @@ -2774,9 +2760,6 @@
"anyOf": [
{
"const": "fast-forward",
"enum": [
"fast-forward"
],
"type": "string"
},
{
Expand All @@ -2788,6 +2771,7 @@
"title": "Queue Branch Merge Method"
},
"queue_branch_prefix": {
"default": "mergify/merge-queue/",
"title": "Queue Branch Prefix",
"type": "string"
},
Expand Down
Loading

0 comments on commit c906a72

Please sign in to comment.