Skip to content

Commit 87f89bb

Browse files
authored
Merge pull request #539 from python-jsonschema/vendor-schemas-auto
Update vendored schemas
2 parents 25be81a + 43ad2eb commit 87f89bb

17 files changed

+345
-114
lines changed

CHANGELOG.rst

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

1111
.. vendor-insert-here
1212
13+
- Update vendored schemas: circle-ci, compose-spec, dependabot, github-workflows,
14+
gitlab-ci, mergify, renovate, taskfile (2025-03-23)
15+
1316
- Add Meltano schema and pre-commit hook (:issue:`540`).
1417

1518
0.31.3

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@
15011501
"additionalProperties": false,
15021502
"properties": {
15031503
"schedule": {
1504-
"description": "A workflow may have a schedule indicating it runs at a certain time, for example a nightly build that runs every day at 12am UTC:",
1504+
"description": "A workflow may have a schedule indicating it runs at a certain time, for example a nightly build that runs every day at 12am UTC",
15051505
"type": "object",
15061506
"properties": {
15071507
"cron": {

src/check_jsonschema/builtin_schemas/vendor/compose-spec.json

Lines changed: 13 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2019-09/schema#",
3-
"id": "compose_spec.json",
2+
"$schema": "https://json-schema.org/draft-07/schema",
3+
"$id": "compose_spec.json",
44
"type": "object",
55
"title": "Compose Specification",
66
"description": "The Compose file is a YAML file defining a multi-containers based application.",
@@ -25,7 +25,6 @@
2525
},
2626

2727
"services": {
28-
"id": "#/properties/services",
2928
"type": "object",
3029
"patternProperties": {
3130
"^[a-zA-Z0-9._-]+$": {
@@ -36,7 +35,6 @@
3635
},
3736

3837
"networks": {
39-
"id": "#/properties/networks",
4038
"type": "object",
4139
"patternProperties": {
4240
"^[a-zA-Z0-9._-]+$": {
@@ -46,7 +44,6 @@
4644
},
4745

4846
"volumes": {
49-
"id": "#/properties/volumes",
5047
"type": "object",
5148
"patternProperties": {
5249
"^[a-zA-Z0-9._-]+$": {
@@ -57,7 +54,6 @@
5754
},
5855

5956
"secrets": {
60-
"id": "#/properties/secrets",
6157
"type": "object",
6258
"patternProperties": {
6359
"^[a-zA-Z0-9._-]+$": {
@@ -68,7 +64,6 @@
6864
},
6965

7066
"configs": {
71-
"id": "#/properties/configs",
7267
"type": "object",
7368
"patternProperties": {
7469
"^[a-zA-Z0-9._-]+$": {
@@ -85,7 +80,6 @@
8580
"definitions": {
8681

8782
"service": {
88-
"id": "#/definitions/service",
8983
"type": "object",
9084

9185
"properties": {
@@ -246,8 +240,7 @@
246240
"expose": {
247241
"type": "array",
248242
"items": {
249-
"type": ["string", "number"],
250-
"format": "expose"
243+
"type": ["string", "number"]
251244
},
252245
"uniqueItems": true
253246
},
@@ -327,7 +320,8 @@
327320
"^.+$": {"type": ["string", "number"]}
328321
}
329322
},
330-
"priority": {"type": "number"}
323+
"priority": {"type": "number"},
324+
"gw_priority": {"type": "number"}
331325
},
332326
"additionalProperties": false,
333327
"patternProperties": {"^x-": {}}
@@ -376,9 +370,10 @@
376370
"pre_stop": {"type": "array", "items": {"$ref": "#/definitions/service_hook"}},
377371
"privileged": {"type": ["boolean", "string"]},
378372
"profiles": {"$ref": "#/definitions/list_of_strings"},
379-
"pull_policy": {"type": "string", "enum": [
380-
"always", "never", "if_not_present", "build", "missing"
381-
]},
373+
"pull_policy": {"type": "string",
374+
"pattern": "always|never|build|if_not_present|missing|refresh|daily|weekly|every_([0-9]+[wdhms])+"
375+
},
376+
"pull_refresh_after": {"type": "string"},
382377
"read_only": {"type": ["boolean", "string"]},
383378
"restart": {"type": "string"},
384379
"runtime": {
@@ -469,7 +464,6 @@
469464
},
470465

471466
"healthcheck": {
472-
"id": "#/definitions/healthcheck",
473467
"type": "object",
474468
"properties": {
475469
"disable": {"type": ["boolean", "string"]},
@@ -489,7 +483,6 @@
489483
"patternProperties": {"^x-": {}}
490484
},
491485
"development": {
492-
"id": "#/definitions/development",
493486
"type": ["object", "null"],
494487
"properties": {
495488
"watch": {
@@ -498,7 +491,8 @@
498491
"type": "object",
499492
"required": ["path", "action"],
500493
"properties": {
501-
"ignore": {"type": "array", "items": {"type": "string"}},
494+
"ignore": {"$ref": "#/definitions/string_or_list"},
495+
"include": {"$ref": "#/definitions/string_or_list"},
502496
"path": {"type": "string"},
503497
"action": {"type": "string", "enum": ["rebuild", "sync", "restart", "sync+restart", "sync+exec"]},
504498
"target": {"type": "string"},
@@ -513,7 +507,6 @@
513507
"patternProperties": {"^x-": {}}
514508
},
515509
"deployment": {
516-
"id": "#/definitions/deployment",
517510
"type": ["object", "null"],
518511
"properties": {
519512
"mode": {"type": "string"},
@@ -615,7 +608,6 @@
615608
},
616609

617610
"generic_resources": {
618-
"id": "#/definitions/generic_resources",
619611
"type": "array",
620612
"items": {
621613
"type": "object",
@@ -636,7 +628,6 @@
636628
},
637629

638630
"devices": {
639-
"id": "#/definitions/devices",
640631
"type": "array",
641632
"items": {
642633
"type": "object",
@@ -656,7 +647,6 @@
656647
},
657648

658649
"gpus": {
659-
"id": "#/definitions/gpus",
660650
"oneOf": [
661651
{"type": "string", "enum": ["all"]},
662652
{"type": "array",
@@ -677,7 +667,6 @@
677667
},
678668

679669
"include": {
680-
"id": "#/definitions/include",
681670
"oneOf": [
682671
{"type": "string"},
683672
{
@@ -693,7 +682,6 @@
693682
},
694683

695684
"network": {
696-
"id": "#/definitions/network",
697685
"type": ["object", "null"],
698686
"properties": {
699687
"name": {"type": "string"},
@@ -757,7 +745,6 @@
757745
},
758746

759747
"volume": {
760-
"id": "#/definitions/volume",
761748
"type": ["object", "null"],
762749
"properties": {
763750
"name": {"type": "string"},
@@ -786,7 +773,6 @@
786773
},
787774

788775
"secret": {
789-
"id": "#/definitions/secret",
790776
"type": "object",
791777
"properties": {
792778
"name": {"type": "string"},
@@ -813,7 +799,6 @@
813799
},
814800

815801
"config": {
816-
"id": "#/definitions/config",
817802
"type": "object",
818803
"properties": {
819804
"name": {"type": "string"},
@@ -845,7 +830,6 @@
845830
},
846831

847832
"service_hook": {
848-
"id": "#/definitions/service_hook",
849833
"type": "object",
850834
"properties": {
851835
"command": {"$ref": "#/definitions/command"},
@@ -855,7 +839,8 @@
855839
"environment": {"$ref": "#/definitions/list_or_dict"}
856840
},
857841
"additionalProperties": false,
858-
"patternProperties": {"^x-": {}}
842+
"patternProperties": {"^x-": {}},
843+
"required": ["command"]
859844
},
860845

861846
"env_file": {
@@ -1010,20 +995,6 @@
1010995
]
1011996
}
1012997
}
1013-
},
1014-
"constraints": {
1015-
"service": {
1016-
"id": "#/definitions/constraints/service",
1017-
"anyOf": [
1018-
{"required": ["build"]},
1019-
{"required": ["image"]}
1020-
],
1021-
"properties": {
1022-
"build": {
1023-
"required": ["context"]
1024-
}
1025-
}
1026-
}
1027998
}
1028999
}
10291000
}

src/check_jsonschema/builtin_schemas/vendor/dependabot.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@
653653
"composer",
654654
"devcontainers",
655655
"docker",
656+
"docker-compose",
656657
"dotnet-sdk",
657658
"elm",
658659
"gitsubmodule",
@@ -666,7 +667,8 @@
666667
"pip",
667668
"pub",
668669
"swift",
669-
"terraform"
670+
"terraform",
671+
"uv"
670672
]
671673
},
672674
"schedule-day": {

src/check_jsonschema/builtin_schemas/vendor/github-workflows.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@
109109
"description": "Sets an array of volumes for the container to use. You can use volumes to share data between services or other steps in a job. You can specify named Docker volumes, anonymous Docker volumes, or bind mounts on the host.\nTo specify a volume, you specify the source and destination path: <source>:<destinationPath>\nThe <source> is a volume name or an absolute path on the host machine, and <destinationPath> is an absolute path in the container.",
110110
"type": "array",
111111
"items": {
112-
"type": "string",
113-
"pattern": "^[^:]+:[^:]+$"
112+
"type": "string"
114113
},
115114
"minItems": 1
116115
},
@@ -1531,10 +1530,6 @@
15311530
"description": "A string description of the input parameter.",
15321531
"type": "string"
15331532
},
1534-
"deprecationMessage": {
1535-
"description": "A string shown to users using the deprecated input.",
1536-
"type": "string"
1537-
},
15381533
"required": {
15391534
"$comment": "https://help.github.com/en/github/automating-your-workflow-with-github-actions/metadata-syntax-for-github-actions#inputsinput_idrequired",
15401535
"description": "A boolean to indicate whether the action requires the input parameter. Set to true when the parameter is required.",

0 commit comments

Comments
 (0)