diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4bd58214f..bac82eb3f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: # dogfood - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.26.3 + rev: 0.27.0 hooks: - id: check-dependabot - id: check-github-workflows @@ -14,12 +14,12 @@ repos: args: ["--schemafile", "tests/example-files/config_schema.json"] files: ^tests/example-files/.*/_config.yaml$ - repo: https://github.com/pre-commit/pre-commit-hooks.git - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-merge-conflict - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 23.9.1 + rev: 23.10.0 hooks: - id: black - repo: https://github.com/PyCQA/flake8 @@ -32,7 +32,7 @@ repos: hooks: - id: isort - repo: https://github.com/asottile/pyupgrade - rev: v3.13.0 + rev: v3.15.0 hooks: - id: pyupgrade args: ["--py37-plus"] diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 2ec7c9d2e..e48185ae0 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -10,6 +10,12 @@ Unreleased .. vendor-insert-here +0.27.1 +------ + +- Update vendored schemas: buildkite, drone-ci, github-workflows, gitlab-ci, + readthedocs, renovate (2023-11-03) + 0.27.0 ------ diff --git a/README.md b/README.md index 89bc68139..1dae82a04 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ files. ```yaml - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-github-workflows args: ["--verbose"] diff --git a/docs/optional_parsers.rst b/docs/optional_parsers.rst index 107e98a9d..4459e47ea 100644 --- a/docs/optional_parsers.rst +++ b/docs/optional_parsers.rst @@ -20,7 +20,7 @@ For example, .. code-block:: yaml - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-renovate additional_dependencies: ['pyjson5'] @@ -39,7 +39,7 @@ For example, .. code-block:: yaml - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-jsonschema name: 'Check GitHub Workflows' diff --git a/docs/precommit_usage.rst b/docs/precommit_usage.rst index 2b2bd4198..dc501d49b 100644 --- a/docs/precommit_usage.rst +++ b/docs/precommit_usage.rst @@ -17,7 +17,7 @@ You must specify a schema using pre-commit ``args`` configuration. :caption: example config - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-jsonschema files: ^data/.*\.json$ @@ -34,7 +34,7 @@ Validate JSON Schema files against their matching metaschema, as specified in th :caption: example config - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-metaschema files: ^schemas/.*\.json$ @@ -52,7 +52,7 @@ Validate Azure Pipelines config against the schema provided by Microsoft :caption: example config - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-azure-pipelines @@ -66,7 +66,7 @@ Validate Bamboo Specs against the schema provided by SchemaStore :caption: example config - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-bamboo-spec @@ -80,7 +80,7 @@ Validate Bitbucket Pipelines against the schema provided by SchemaStore :caption: example config - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-bitbucket-pipelines @@ -94,7 +94,7 @@ Validate Buildkite Pipelines against the schema provided by Buildkite :caption: example config - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-buildkite @@ -108,7 +108,7 @@ Validate Dependabot Config (v2) against the schema provided by SchemaStore :caption: example config - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-dependabot @@ -122,7 +122,7 @@ Validate Drone-CI Config against the schema provided by SchemaStore :caption: example config - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-drone-ci @@ -136,7 +136,7 @@ Validate GitHub Actions against the schema provided by SchemaStore :caption: example config - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-github-actions @@ -150,7 +150,7 @@ Validate GitHub Workflows against the schema provided by SchemaStore :caption: example config - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-github-workflows @@ -164,7 +164,7 @@ Validate GitLab CI config against the schema provided by SchemaStore :caption: example config - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-gitlab-ci @@ -178,7 +178,7 @@ Validate ReadTheDocs config against the schema provided by ReadTheDocs :caption: example config - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-readthedocs @@ -192,7 +192,7 @@ Validate Renovate config against the schema provided by Renovate (does not suppo :caption: example config - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-renovate @@ -206,7 +206,7 @@ Validate Travis Config against the schema provided by SchemaStore :caption: example config - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-travis @@ -232,7 +232,7 @@ manually, you could do this: .. code-block:: yaml - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-jsonschema name: "Check GitHub Workflows" @@ -251,7 +251,7 @@ To check with the builtin schema that a GitHub workflow sets .. code-block:: yaml - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-jsonschema name: "Check GitHub Workflows set timeout-minutes" diff --git a/setup.cfg b/setup.cfg index f7d97f808..e313b7067 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = check-jsonschema -version = 0.27.0 +version = 0.27.1 description = A jsonschema CLI and pre-commit hook long_description = file: README.md long_description_content_type = text/markdown @@ -19,7 +19,7 @@ python_requires = >=3.8 # reference for dependency spec: https://www.python.org/dev/peps/pep-0508/ install_requires = importlib-resources>=1.4.0;python_version<"3.9" - ruamel.yaml==0.17.32 + ruamel.yaml==0.17.33 jsonschema>=4.18.0,<5.0 regress>=0.4.0 requests<3.0 @@ -45,7 +45,7 @@ dev = docs = sphinx<8 sphinx-issues<4 - furo==2023.8.19 + furo==2023.9.10 [isort] profile = black diff --git a/src/check_jsonschema/builtin_schemas/vendor/buildkite.json b/src/check_jsonschema/builtin_schemas/vendor/buildkite.json index ba89d0814..18edd624a 100644 --- a/src/check_jsonschema/builtin_schemas/vendor/buildkite.json +++ b/src/check_jsonschema/builtin_schemas/vendor/buildkite.json @@ -15,6 +15,9 @@ ".buildkite/pipeline.*.yaml", ".buildkite/pipeline.*.json" ], + "required": [ + "steps" + ], "definitions": { "commonOptions": { "allowDependencyFailure": { @@ -705,6 +708,29 @@ "label": { "$ref": "#/definitions/commonOptions/label" }, + "signature": { + "type": "object", + "description": "The signature of the command step, generally injected by agents at pipeline upload", + "properties": { + "algorithm": { + "type": "string", + "description": "The algorithm used to generate the signature", + "examples": [ "HS512", "EdDSA", "PS256" ] + }, + "value": { + "type": "string", + "description": "The signature value, a JWS compact signature with a detached body" + }, + "signed_fields": { + "type": "array", + "description": "The fields that were signed to form the signature value", + "items": { + "type": "string" + }, + "examples": [["command", "matrix", "plugins", "env::SOME_ENV_VAR"]] + } + } + }, "matrix": { "oneOf": [ { @@ -1211,7 +1237,7 @@ "$ref": "#/definitions/commonOptions/dependsOn" }, "group": { - "type": "string", + "type": [ "string", "null" ], "description": "The name to give to this group of steps", "examples": [ "Tests" ] }, @@ -1233,6 +1259,12 @@ "name": { "$ref": "#/definitions/groupStep/properties/label" }, + "allow_dependency_failure": { + "$ref": "#/definitions/commonOptions/allowDependencyFailure" + }, + "notify": { + "$ref": "#/definitions/commonOptions/buildNotify" + }, "steps": { "type": "array", "description": "A list of steps", @@ -1255,7 +1287,7 @@ "minSize": 1 }, "type": { - "type": "string", + "type": [ "string" ], "enum": [ "group" ] } }, diff --git a/src/check_jsonschema/builtin_schemas/vendor/buildkite.sha256 b/src/check_jsonschema/builtin_schemas/vendor/buildkite.sha256 index 617524afb..0d2d60bf0 100644 --- a/src/check_jsonschema/builtin_schemas/vendor/buildkite.sha256 +++ b/src/check_jsonschema/builtin_schemas/vendor/buildkite.sha256 @@ -1 +1 @@ -83e261dd2db147cd37fa931243e523199a37f1458ef67d8bc3b5e31c85ec1c4c \ No newline at end of file +31ccdd15c66d956fc260988de3794f85f8ad66e5091f433a315d7f471c3fd045 \ No newline at end of file diff --git a/src/check_jsonschema/builtin_schemas/vendor/drone-ci.json b/src/check_jsonschema/builtin_schemas/vendor/drone-ci.json index 94e0999b2..a807da8cb 100644 --- a/src/check_jsonschema/builtin_schemas/vendor/drone-ci.json +++ b/src/check_jsonschema/builtin_schemas/vendor/drone-ci.json @@ -1,847 +1,850 @@ -{ - "$id": "https://json.schemastore.org/drone.json", - "$schema": "http://json-schema.org/draft-07/schema#", - "definitions": { - "nonEmptyString": { - "type": "string", - "minLength": 1 - }, - "platform": { - "type": "object", - "properties": { - "os": { - "type": "string", - "enum": [ - "linux", - "windows", - "darwin", - "freebsd", - "netbsd", - "openbsd", - "dragonfly", - "solaris" - ] - }, - "arch": { - "type": "string", - "enum": ["arm", "arm64", "amd64", "386"] - }, - "variant": { - "type": "string" - }, - "version": { - "type": "string" - } - } - }, - "commands": { - "type": "array", - "items": { - "$ref": "#/definitions/nonEmptyString" - } - }, - "environment": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "boolean" - }, - { - "$ref": "#/definitions/secret" - } - ] - } - }, - "condition": { - "type": "array", - "items": { - "type": "string" - } - }, - "conditions": { - "anyOf": [ - { - "$ref": "#/definitions/condition" - }, - { - "type": "object", - "properties": { - "include": { - "$ref": "#/definitions/condition" - } - } - }, - { - "type": "object", - "properties": { - "exclude": { - "$ref": "#/definitions/condition" - } - } - } - ] - }, - "allConditions": { - "type": "object", - "properties": { - "branch": { - "$ref": "#/definitions/conditions" - }, - "cron": { - "$ref": "#/definitions/conditions" - }, - "event": { - "$ref": "#/definitions/conditions" - }, - "paths": { - "$ref": "#/definitions/conditions" - }, - "ref": { - "$ref": "#/definitions/conditions" - }, - "repo": { - "$ref": "#/definitions/conditions" - }, - "status": { - "$ref": "#/definitions/condition" - }, - "target": { - "$ref": "#/definitions/conditions" - } - } - }, - "volumes": { - "type": "array", - "items": { - "type": "object", - "oneOf": [ - { - "required": ["name", "host"] - }, - { - "required": ["name", "path"] - }, - { - "required": ["name", "temp"] - }, - { - "required": ["name", "claim"] - }, - { - "required": ["name", "config_map"] - } - ], - "properties": { - "name": { - "$ref": "#/definitions/nonEmptyString" - }, - "host": { - "type": "object", - "properties": { - "path": { - "$ref": "#/definitions/nonEmptyString" - } - } - }, - "temp": { - "type": "object", - "additionalProperties": false, - "properties": { - "medium": { - "type": "string", - "enum": ["memory"] - } - } - }, - "claim": { - "type": "object", - "properties": { - "name": { - "$ref": "#/definitions/nonEmptyString" - }, - "read_only": { - "type": "boolean" - } - } - }, - "config_map": { - "type": "object", - "properties": { - "name": { - "$ref": "#/definitions/nonEmptyString" - }, - "default_mode": { - "type": "integer" - }, - "optional": { - "type": "boolean" - } - } - } - } - } - }, - "services": { - "type": "array", - "items": { - "type": "object", - "required": ["name", "image"], - "properties": { - "name": { - "$ref": "#/definitions/nonEmptyString" - }, - "image": { - "$ref": "#/definitions/nonEmptyString" - }, - "command": { - "$ref": "#/definitions/commands" - }, - "entrypoint": { - "$ref": "#/definitions/commands" - }, - "environment": { - "$ref": "#/definitions/environment" - }, - "privileged": { - "type": "boolean" - }, - "pull": { - "const": "always" - }, - "volumes": { - "$ref": "#/definitions/volumes" - }, - "working_dir": { - "$ref": "#/definitions/nonEmptyString" - } - } - } - }, - "secret": { - "type": "object", - "required": ["from_secret"], - "properties": { - "from_secret": { - "type": "string" - } - } - }, - "stringOrSecret": { - "oneOf": [ - { - "$ref": "#/definitions/nonEmptyString" - }, - { - "$ref": "#/definitions/secret" - } - ] - }, - "node": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "concurrency": { - "type": "object", - "required": ["limit"], - "properties": { - "limit": { - "type": "number" - } - } - }, - "kind_signature": { - "type": "object", - "required": ["hmac"], - "properties": { - "kind": { - "const": "signature" - }, - "hmac": { - "type": "string", - "minLength": 40, - "maxLength": 64 - } - } - }, - "kind_secret": { - "type": "object", - "required": ["name"], - "properties": { - "kind": { - "const": "secret" - }, - "name": { - "$ref": "#/definitions/nonEmptyString" - }, - "data": { - "type": "string" - }, - "get": { - "type": "object", - "required": ["path", "name"], - "properties": { - "path": { - "$ref": "#/definitions/nonEmptyString" - }, - "name": { - "$ref": "#/definitions/nonEmptyString" - } - } - } - } - }, - "kind_template": { - "type": "object", - "required": ["load"], - "properties": { - "load": { - "type": "string" - }, - "data": { - "type": "object" - } - } - }, - "kind_pipeline": { - "type": "object", - "required": ["type", "name", "steps"], - "properties": { - "kind": { - "const": "pipeline" - }, - "name": { - "$ref": "#/definitions/nonEmptyString" - }, - "type": { - "enum": [ - "docker", - "kubernetes", - "ssh", - "exec", - "digitalocean", - "macstadium" - ] - }, - "platform": { - "$ref": "#/definitions/platform" - }, - "workspace": { - "type": "object", - "required": ["path"], - "properties": { - "path": { - "$ref": "#/definitions/nonEmptyString" - } - } - }, - "clone": { - "type": "object", - "properties": { - "depth": { - "type": "integer" - }, - "disable": { - "const": true - }, - "retries": { - "type": "integer" - } - } - }, - "steps": { - "type": "array", - "minLength": 1 - }, - "trigger": { - "$ref": "#/definitions/allConditions" - }, - "depends_on": { - "type": "array", - "items": { - "$ref": "#/definitions/nonEmptyString" - } - } - } - }, - "pipeline_docker": { - "type": "object", - "additionalProperties": false, - "properties": { - "type": { - "const": "docker" - }, - "environment": { - "$ref": "#/definitions/environment" - }, - "steps": { - "items": { - "$ref": "#/definitions/step_docker" - } - }, - "volumes": { - "$ref": "#/definitions/volumes" - }, - "services": { - "$ref": "#/definitions/services" - }, - "image_pull_secrets": { - "type": "array", - "items": { - "type": "string" - } - }, - "node": { - "$ref": "#/definitions/node" - }, - "concurrency": { - "$ref": "#/definitions/concurrency" - }, - "kind": {}, - "name": {}, - "platform": {}, - "workspace": {}, - "clone": {}, - "trigger": {}, - "depends_on": {} - } - }, - "pipeline_kubernetes": { - "type": "object", - "additionalProperties": false, - "properties": { - "type": { - "const": "kubernetes" - }, - "metadata": { - "$ref": "https://json.schemastore.org/kubernetes-definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "node": { - "$ref": "#/definitions/node" - }, - "tolerations": { - "description": "If specified, the pod's tolerations.", - "items": { - "$ref": "https://json.schemastore.org/kubernetes-definitions.json#/definitions/io.k8s.api.core.v1.Toleration" - }, - "type": "array" - }, - "dns_config": { - "description": "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.", - "$ref": "https://json.schemastore.org/kubernetes-definitions.json#/definitions/io.k8s.api.core.v1.PodDNSConfig" - }, - "host_aliases": { - "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.", - "items": { - "$ref": "https://json.schemastore.org/kubernetes-definitions.json#/definitions/io.k8s.api.core.v1.HostAlias" - }, - "type": "array" - }, - "node_selector": { - "description": "A list of node selector terms.", - "items": { - "$ref": "https://json.schemastore.org/kubernetes-definitions.json#/definitions/io.k8s.api.core.v1.NodeSelectorTerm" - } - }, - "steps": { - "items": { - "$ref": "#/definitions/step_kubernetes" - } - }, - "volumes": { - "$ref": "#/definitions/volumes" - }, - "services": { - "$ref": "#/definitions/services" - }, - "image_pull_secrets": { - "type": "array", - "items": { - "type": "string" - } - }, - "service_account_name": { - "description": "The name of the service account to use when running the kubernetes pipeline", - "type": "string" - }, - "kind": {}, - "name": {}, - "platform": {}, - "workspace": {}, - "clone": {}, - "trigger": {}, - "depends_on": {} - } - }, - "pipeline_exec": { - "type": "object", - "additionalProperties": false, - "properties": { - "type": { - "const": "exec" - }, - "steps": { - "items": { - "$ref": "#/definitions/step_exec" - } - }, - "node": { - "$ref": "#/definitions/node" - }, - "kind": {}, - "name": {}, - "platform": {}, - "workspace": {}, - "clone": {}, - "trigger": {}, - "depends_on": {} - } - }, - "pipeline_ssh": { - "type": "object", - "additionalProperties": false, - "required": ["server"], - "properties": { - "type": { - "const": "ssh" - }, - "steps": { - "items": { - "$ref": "#/definitions/step_ssh" - } - }, - "server": { - "required": ["host", "user"], - "properties": { - "host": { - "$ref": "#/definitions/stringOrSecret" - }, - "user": { - "$ref": "#/definitions/stringOrSecret" - }, - "password": { - "$ref": "#/definitions/stringOrSecret" - }, - "ssh_key": { - "$ref": "#/definitions/stringOrSecret" - } - } - }, - "kind": {}, - "name": {}, - "platform": {}, - "workspace": {}, - "clone": {}, - "trigger": {}, - "depends_on": {} - } - }, - "pipeline_digitalocean": { - "type": "object", - "additionalProperties": false, - "required": ["token"], - "properties": { - "type": { - "const": "digitalocean" - }, - "token": { - "$ref": "#/definitions/stringOrSecret" - }, - "steps": { - "items": { - "$ref": "#/definitions/step_digitalocean" - } - }, - "kind": {}, - "name": {}, - "platform": {}, - "workspace": {}, - "clone": {}, - "trigger": {}, - "depends_on": {} - } - }, - "pipeline_macstadium": { - "type": "object", - "additionalProperties": false, - "properties": { - "type": { - "const": "macstadium" - }, - "steps": { - "items": { - "$ref": "#/definitions/step_macstadium" - } - }, - "kind": {}, - "name": {}, - "platform": {}, - "workspace": {}, - "clone": {}, - "trigger": {}, - "depends_on": {} - } - }, - "step": { - "type": "object", - "required": ["name"], - "properties": { - "name": { - "$ref": "#/definitions/nonEmptyString" - }, - "failure": { - "type": "string", - "enum": ["always", "ignore"] - }, - "commands": { - "$ref": "#/definitions/commands" - }, - "detach": { - "type": "boolean" - }, - "environment": { - "$ref": "#/definitions/environment" - }, - "when": { - "$ref": "#/definitions/allConditions" - }, - "depends_on": { - "type": "array", - "items": { - "$ref": "#/definitions/nonEmptyString" - } - } - } - }, - "step_docker": { - "allOf": [ - { - "$ref": "#/definitions/step" - }, - { - "type": "object", - "additionalProperties": false, - "required": ["image"], - "properties": { - "image": { - "$ref": "#/definitions/nonEmptyString" - }, - "network_mode": { - "type": "string", - "enum": ["bridge", "host"] - }, - "privileged": { - "type": "boolean" - }, - "pull": { - "type": "string", - "enum": ["always", "never", "if-not-exists"] - }, - "volumes": { - "$ref": "#/definitions/steps_volumes" - }, - "settings": { - "type": "object" - }, - "name": {}, - "detach": { - "type": "boolean" - }, - "failure": {}, - "commands": {}, - "environment": {}, - "when": {}, - "depends_on": {}, - "user": {} - } - } - ] - }, - "step_kubernetes": { - "allOf": [ - { - "$ref": "#/definitions/step" - }, - { - "type": "object", - "additionalProperties": false, - "required": ["image"], - "properties": { - "image": { - "$ref": "#/definitions/nonEmptyString" - }, - "privileged": { - "type": "boolean" - }, - "pull": { - "type": "string", - "enum": ["always", "never", "if-not-exists"] - }, - "resources": { - "$ref": "https://json.schemastore.org/kubernetes-definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements" - }, - "volumes": { - "$ref": "#/definitions/steps_volumes" - }, - "settings": { - "type": "object" - }, - "name": {}, - "failure": {}, - "commands": {}, - "environment": {}, - "when": {}, - "depends_on": {} - } - } - ] - }, - "step_exec": { - "allOf": [ - { - "$ref": "#/definitions/step" - }, - { - "type": "object", - "additionalProperties": false, - "properties": { - "name": {}, - "failure": {}, - "commands": {}, - "environment": {}, - "when": {}, - "depends_on": {} - } - } - ] - }, - "step_ssh": { - "allOf": [ - { - "$ref": "#/definitions/step" - }, - { - "type": "object", - "additionalProperties": false, - "properties": { - "name": {}, - "failure": {}, - "commands": {}, - "environment": {}, - "when": {}, - "depends_on": {} - } - } - ] - }, - "step_digitalocean": { - "allOf": [ - { - "$ref": "#/definitions/step" - }, - { - "type": "object", - "additionalProperties": false, - "properties": { - "name": {}, - "failure": {}, - "commands": {}, - "environment": {}, - "when": {}, - "depends_on": {} - } - } - ] - }, - "step_macstadium": { - "allOf": [ - { - "$ref": "#/definitions/step" - }, - { - "type": "object", - "additionalProperties": false, - "properties": { - "name": {}, - "failure": {}, - "commands": {}, - "environment": {}, - "when": {}, - "depends_on": {} - } - } - ] - }, - "steps_volumes": { - "type": "array", - "items": { - "type": "object", - "required": ["name", "path"], - "properties": { - "name": { - "$ref": "#/definitions/nonEmptyString" - }, - "path": { - "$ref": "#/definitions/nonEmptyString" - } - } - } - } - }, - "oneOf": [ - { - "$ref": "#/definitions/kind_signature" - }, - { - "$ref": "#/definitions/kind_secret" - }, - { - "$ref": "#/definitions/kind_template" - }, - { - "allOf": [ - { - "$ref": "#/definitions/kind_pipeline" - }, - { - "oneOf": [ - { - "$ref": "#/definitions/pipeline_docker" - }, - { - "$ref": "#/definitions/pipeline_kubernetes" - }, - { - "$ref": "#/definitions/pipeline_exec" - }, - { - "$ref": "#/definitions/pipeline_ssh" - }, - { - "$ref": "#/definitions/pipeline_digitalocean" - }, - { - "$ref": "#/definitions/pipeline_macstadium" - } - ] - } - ] - } - ], - "properties": { - "kind": { - "enum": ["signature", "secret", "template", "pipeline"] - } - }, - "required": ["kind"], - "title": "Drone CI configuration file", - "type": "object" -} +{ + "$id": "https://json.schemastore.org/drone.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "definitions": { + "nonEmptyString": { + "type": "string", + "minLength": 1 + }, + "platform": { + "type": "object", + "properties": { + "os": { + "type": "string", + "enum": [ + "linux", + "windows", + "darwin", + "freebsd", + "netbsd", + "openbsd", + "dragonfly", + "solaris" + ] + }, + "arch": { + "type": "string", + "enum": ["arm", "arm64", "amd64", "386"] + }, + "variant": { + "type": "string" + }, + "version": { + "type": "string" + } + } + }, + "commands": { + "type": "array", + "items": { + "$ref": "#/definitions/nonEmptyString" + } + }, + "environment": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "$ref": "#/definitions/secret" + } + ] + } + }, + "condition": { + "type": "array", + "items": { + "type": "string" + } + }, + "conditions": { + "anyOf": [ + { + "$ref": "#/definitions/condition" + }, + { + "type": "object", + "properties": { + "include": { + "$ref": "#/definitions/condition" + } + } + }, + { + "type": "object", + "properties": { + "exclude": { + "$ref": "#/definitions/condition" + } + } + } + ] + }, + "allConditions": { + "type": "object", + "properties": { + "branch": { + "$ref": "#/definitions/conditions" + }, + "cron": { + "$ref": "#/definitions/conditions" + }, + "event": { + "$ref": "#/definitions/conditions" + }, + "paths": { + "$ref": "#/definitions/conditions" + }, + "ref": { + "$ref": "#/definitions/conditions" + }, + "repo": { + "$ref": "#/definitions/conditions" + }, + "status": { + "$ref": "#/definitions/condition" + }, + "target": { + "$ref": "#/definitions/conditions" + }, + "instance": { + "$ref": "#/definitions/conditions" + } + } + }, + "volumes": { + "type": "array", + "items": { + "type": "object", + "oneOf": [ + { + "required": ["name", "host"] + }, + { + "required": ["name", "path"] + }, + { + "required": ["name", "temp"] + }, + { + "required": ["name", "claim"] + }, + { + "required": ["name", "config_map"] + } + ], + "properties": { + "name": { + "$ref": "#/definitions/nonEmptyString" + }, + "host": { + "type": "object", + "properties": { + "path": { + "$ref": "#/definitions/nonEmptyString" + } + } + }, + "temp": { + "type": "object", + "additionalProperties": false, + "properties": { + "medium": { + "type": "string", + "enum": ["memory"] + } + } + }, + "claim": { + "type": "object", + "properties": { + "name": { + "$ref": "#/definitions/nonEmptyString" + }, + "read_only": { + "type": "boolean" + } + } + }, + "config_map": { + "type": "object", + "properties": { + "name": { + "$ref": "#/definitions/nonEmptyString" + }, + "default_mode": { + "type": "integer" + }, + "optional": { + "type": "boolean" + } + } + } + } + } + }, + "services": { + "type": "array", + "items": { + "type": "object", + "required": ["name", "image"], + "properties": { + "name": { + "$ref": "#/definitions/nonEmptyString" + }, + "image": { + "$ref": "#/definitions/nonEmptyString" + }, + "command": { + "$ref": "#/definitions/commands" + }, + "entrypoint": { + "$ref": "#/definitions/commands" + }, + "environment": { + "$ref": "#/definitions/environment" + }, + "privileged": { + "type": "boolean" + }, + "pull": { + "const": "always" + }, + "volumes": { + "$ref": "#/definitions/volumes" + }, + "working_dir": { + "$ref": "#/definitions/nonEmptyString" + } + } + } + }, + "secret": { + "type": "object", + "required": ["from_secret"], + "properties": { + "from_secret": { + "type": "string" + } + } + }, + "stringOrSecret": { + "oneOf": [ + { + "$ref": "#/definitions/nonEmptyString" + }, + { + "$ref": "#/definitions/secret" + } + ] + }, + "node": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "concurrency": { + "type": "object", + "required": ["limit"], + "properties": { + "limit": { + "type": "number" + } + } + }, + "kind_signature": { + "type": "object", + "required": ["hmac"], + "properties": { + "kind": { + "const": "signature" + }, + "hmac": { + "type": "string", + "minLength": 40, + "maxLength": 64 + } + } + }, + "kind_secret": { + "type": "object", + "required": ["name"], + "properties": { + "kind": { + "const": "secret" + }, + "name": { + "$ref": "#/definitions/nonEmptyString" + }, + "data": { + "type": "string" + }, + "get": { + "type": "object", + "required": ["path", "name"], + "properties": { + "path": { + "$ref": "#/definitions/nonEmptyString" + }, + "name": { + "$ref": "#/definitions/nonEmptyString" + } + } + } + } + }, + "kind_template": { + "type": "object", + "required": ["load"], + "properties": { + "load": { + "type": "string" + }, + "data": { + "type": "object" + } + } + }, + "kind_pipeline": { + "type": "object", + "required": ["type", "name", "steps"], + "properties": { + "kind": { + "const": "pipeline" + }, + "name": { + "$ref": "#/definitions/nonEmptyString" + }, + "type": { + "enum": [ + "docker", + "kubernetes", + "ssh", + "exec", + "digitalocean", + "macstadium" + ] + }, + "platform": { + "$ref": "#/definitions/platform" + }, + "workspace": { + "type": "object", + "required": ["path"], + "properties": { + "path": { + "$ref": "#/definitions/nonEmptyString" + } + } + }, + "clone": { + "type": "object", + "properties": { + "depth": { + "type": "integer" + }, + "disable": { + "const": true + }, + "retries": { + "type": "integer" + } + } + }, + "steps": { + "type": "array", + "minLength": 1 + }, + "trigger": { + "$ref": "#/definitions/allConditions" + }, + "depends_on": { + "type": "array", + "items": { + "$ref": "#/definitions/nonEmptyString" + } + } + } + }, + "pipeline_docker": { + "type": "object", + "additionalProperties": false, + "properties": { + "type": { + "const": "docker" + }, + "environment": { + "$ref": "#/definitions/environment" + }, + "steps": { + "items": { + "$ref": "#/definitions/step_docker" + } + }, + "volumes": { + "$ref": "#/definitions/volumes" + }, + "services": { + "$ref": "#/definitions/services" + }, + "image_pull_secrets": { + "type": "array", + "items": { + "type": "string" + } + }, + "node": { + "$ref": "#/definitions/node" + }, + "concurrency": { + "$ref": "#/definitions/concurrency" + }, + "kind": {}, + "name": {}, + "platform": {}, + "workspace": {}, + "clone": {}, + "trigger": {}, + "depends_on": {} + } + }, + "pipeline_kubernetes": { + "type": "object", + "additionalProperties": false, + "properties": { + "type": { + "const": "kubernetes" + }, + "metadata": { + "$ref": "https://json.schemastore.org/kubernetes-definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "node": { + "$ref": "#/definitions/node" + }, + "tolerations": { + "description": "If specified, the pod's tolerations.", + "items": { + "$ref": "https://json.schemastore.org/kubernetes-definitions.json#/definitions/io.k8s.api.core.v1.Toleration" + }, + "type": "array" + }, + "dns_config": { + "description": "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.", + "$ref": "https://json.schemastore.org/kubernetes-definitions.json#/definitions/io.k8s.api.core.v1.PodDNSConfig" + }, + "host_aliases": { + "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.", + "items": { + "$ref": "https://json.schemastore.org/kubernetes-definitions.json#/definitions/io.k8s.api.core.v1.HostAlias" + }, + "type": "array" + }, + "node_selector": { + "description": "A list of node selector terms.", + "items": { + "$ref": "https://json.schemastore.org/kubernetes-definitions.json#/definitions/io.k8s.api.core.v1.NodeSelectorTerm" + } + }, + "steps": { + "items": { + "$ref": "#/definitions/step_kubernetes" + } + }, + "volumes": { + "$ref": "#/definitions/volumes" + }, + "services": { + "$ref": "#/definitions/services" + }, + "image_pull_secrets": { + "type": "array", + "items": { + "type": "string" + } + }, + "service_account_name": { + "description": "The name of the service account to use when running the kubernetes pipeline", + "type": "string" + }, + "kind": {}, + "name": {}, + "platform": {}, + "workspace": {}, + "clone": {}, + "trigger": {}, + "depends_on": {} + } + }, + "pipeline_exec": { + "type": "object", + "additionalProperties": false, + "properties": { + "type": { + "const": "exec" + }, + "steps": { + "items": { + "$ref": "#/definitions/step_exec" + } + }, + "node": { + "$ref": "#/definitions/node" + }, + "kind": {}, + "name": {}, + "platform": {}, + "workspace": {}, + "clone": {}, + "trigger": {}, + "depends_on": {} + } + }, + "pipeline_ssh": { + "type": "object", + "additionalProperties": false, + "required": ["server"], + "properties": { + "type": { + "const": "ssh" + }, + "steps": { + "items": { + "$ref": "#/definitions/step_ssh" + } + }, + "server": { + "required": ["host", "user"], + "properties": { + "host": { + "$ref": "#/definitions/stringOrSecret" + }, + "user": { + "$ref": "#/definitions/stringOrSecret" + }, + "password": { + "$ref": "#/definitions/stringOrSecret" + }, + "ssh_key": { + "$ref": "#/definitions/stringOrSecret" + } + } + }, + "kind": {}, + "name": {}, + "platform": {}, + "workspace": {}, + "clone": {}, + "trigger": {}, + "depends_on": {} + } + }, + "pipeline_digitalocean": { + "type": "object", + "additionalProperties": false, + "required": ["token"], + "properties": { + "type": { + "const": "digitalocean" + }, + "token": { + "$ref": "#/definitions/stringOrSecret" + }, + "steps": { + "items": { + "$ref": "#/definitions/step_digitalocean" + } + }, + "kind": {}, + "name": {}, + "platform": {}, + "workspace": {}, + "clone": {}, + "trigger": {}, + "depends_on": {} + } + }, + "pipeline_macstadium": { + "type": "object", + "additionalProperties": false, + "properties": { + "type": { + "const": "macstadium" + }, + "steps": { + "items": { + "$ref": "#/definitions/step_macstadium" + } + }, + "kind": {}, + "name": {}, + "platform": {}, + "workspace": {}, + "clone": {}, + "trigger": {}, + "depends_on": {} + } + }, + "step": { + "type": "object", + "required": ["name"], + "properties": { + "name": { + "$ref": "#/definitions/nonEmptyString" + }, + "failure": { + "type": "string", + "enum": ["always", "ignore"] + }, + "commands": { + "$ref": "#/definitions/commands" + }, + "detach": { + "type": "boolean" + }, + "environment": { + "$ref": "#/definitions/environment" + }, + "when": { + "$ref": "#/definitions/allConditions" + }, + "depends_on": { + "type": "array", + "items": { + "$ref": "#/definitions/nonEmptyString" + } + } + } + }, + "step_docker": { + "allOf": [ + { + "$ref": "#/definitions/step" + }, + { + "type": "object", + "additionalProperties": false, + "required": ["image"], + "properties": { + "image": { + "$ref": "#/definitions/nonEmptyString" + }, + "network_mode": { + "type": "string", + "enum": ["bridge", "host"] + }, + "privileged": { + "type": "boolean" + }, + "pull": { + "type": "string", + "enum": ["always", "never", "if-not-exists"] + }, + "volumes": { + "$ref": "#/definitions/steps_volumes" + }, + "settings": { + "type": "object" + }, + "name": {}, + "detach": { + "type": "boolean" + }, + "failure": {}, + "commands": {}, + "environment": {}, + "when": {}, + "depends_on": {}, + "user": {} + } + } + ] + }, + "step_kubernetes": { + "allOf": [ + { + "$ref": "#/definitions/step" + }, + { + "type": "object", + "additionalProperties": false, + "required": ["image"], + "properties": { + "image": { + "$ref": "#/definitions/nonEmptyString" + }, + "privileged": { + "type": "boolean" + }, + "pull": { + "type": "string", + "enum": ["always", "never", "if-not-exists"] + }, + "resources": { + "$ref": "https://json.schemastore.org/kubernetes-definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements" + }, + "volumes": { + "$ref": "#/definitions/steps_volumes" + }, + "settings": { + "type": "object" + }, + "name": {}, + "failure": {}, + "commands": {}, + "environment": {}, + "when": {}, + "depends_on": {} + } + } + ] + }, + "step_exec": { + "allOf": [ + { + "$ref": "#/definitions/step" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "name": {}, + "failure": {}, + "commands": {}, + "environment": {}, + "when": {}, + "depends_on": {} + } + } + ] + }, + "step_ssh": { + "allOf": [ + { + "$ref": "#/definitions/step" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "name": {}, + "failure": {}, + "commands": {}, + "environment": {}, + "when": {}, + "depends_on": {} + } + } + ] + }, + "step_digitalocean": { + "allOf": [ + { + "$ref": "#/definitions/step" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "name": {}, + "failure": {}, + "commands": {}, + "environment": {}, + "when": {}, + "depends_on": {} + } + } + ] + }, + "step_macstadium": { + "allOf": [ + { + "$ref": "#/definitions/step" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "name": {}, + "failure": {}, + "commands": {}, + "environment": {}, + "when": {}, + "depends_on": {} + } + } + ] + }, + "steps_volumes": { + "type": "array", + "items": { + "type": "object", + "required": ["name", "path"], + "properties": { + "name": { + "$ref": "#/definitions/nonEmptyString" + }, + "path": { + "$ref": "#/definitions/nonEmptyString" + } + } + } + } + }, + "oneOf": [ + { + "$ref": "#/definitions/kind_signature" + }, + { + "$ref": "#/definitions/kind_secret" + }, + { + "$ref": "#/definitions/kind_template" + }, + { + "allOf": [ + { + "$ref": "#/definitions/kind_pipeline" + }, + { + "oneOf": [ + { + "$ref": "#/definitions/pipeline_docker" + }, + { + "$ref": "#/definitions/pipeline_kubernetes" + }, + { + "$ref": "#/definitions/pipeline_exec" + }, + { + "$ref": "#/definitions/pipeline_ssh" + }, + { + "$ref": "#/definitions/pipeline_digitalocean" + }, + { + "$ref": "#/definitions/pipeline_macstadium" + } + ] + } + ] + } + ], + "properties": { + "kind": { + "enum": ["signature", "secret", "template", "pipeline"] + } + }, + "required": ["kind"], + "title": "Drone CI configuration file", + "type": "object" +} diff --git a/src/check_jsonschema/builtin_schemas/vendor/drone-ci.sha256 b/src/check_jsonschema/builtin_schemas/vendor/drone-ci.sha256 index 3bc78ac1b..a62b8f71b 100644 --- a/src/check_jsonschema/builtin_schemas/vendor/drone-ci.sha256 +++ b/src/check_jsonschema/builtin_schemas/vendor/drone-ci.sha256 @@ -1 +1 @@ -9d113214fd1674366437bc7ab6aaba04e412cbf167fb554a21d681193fc486a7 \ No newline at end of file +bca65a75ba0437d034ddc5062772db71eebb634c06491edbb2dc7b650a8635d8 \ No newline at end of file diff --git a/src/check_jsonschema/builtin_schemas/vendor/github-workflows.json b/src/check_jsonschema/builtin_schemas/vendor/github-workflows.json index 4c488c5fb..e86acf36a 100644 --- a/src/check_jsonschema/builtin_schemas/vendor/github-workflows.json +++ b/src/check_jsonschema/builtin_schemas/vendor/github-workflows.json @@ -522,7 +522,7 @@ "fail-fast": { "$comment": "https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast", "description": "When set to true, GitHub cancels all in-progress jobs if any matrix job fails. Default: true", - "type": "boolean", + "type": ["boolean", "string"], "default": true }, "max-parallel": { @@ -569,32 +569,10 @@ "runs-on": { "$comment": "https://help.github.com/en/github/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idruns-on", "description": "The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.", - "oneOf": [ + "anyOf": [ { "$comment": "https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#github-hosted-runners", - "type": "string", - "enum": [ - "macos-10.15", - "macos-11", - "macos-12", - "macos-12-xl", - "macos-13", - "macos-13-xl", - "macos-latest", - "macos-latest-xl", - "self-hosted", - "ubuntu-18.04", - "ubuntu-20.04", - "ubuntu-22.04", - "ubuntu-latest", - "ubuntu-latest-4-cores", - "ubuntu-latest-8-cores", - "ubuntu-latest-16-cores", - "windows-2019", - "windows-2022", - "windows-latest", - "windows-latest-8-cores" - ] + "type": "string" }, { "$comment": "https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#self-hosted-runners", @@ -603,99 +581,10 @@ { "items": [ { - "const": "self-hosted" - } - ], - "minItems": 1, - "additionalItems": { - "type": "string" - } - }, - { - "items": [ - { - "const": "self-hosted" - }, - { - "$ref": "#/definitions/machine" - } - ], - "minItems": 2, - "additionalItems": { - "type": "string" - } - }, - { - "items": [ - { - "const": "self-hosted" - }, - { - "$ref": "#/definitions/architecture" - } - ], - "minItems": 2, - "additionalItems": { - "type": "string" - } - }, - { - "items": [ - { - "const": "self-hosted" - }, - { - "$ref": "#/definitions/machine" - }, - { - "$ref": "#/definitions/architecture" - } - ], - "minItems": 3, - "additionalItems": { - "type": "string" - } - }, - { - "items": [ - { - "const": "self-hosted" - }, - { - "$ref": "#/definitions/architecture" - }, - { - "$ref": "#/definitions/machine" - } - ], - "minItems": 3, - "additionalItems": { - "type": "string" - } - }, - { - "items": [ - { - "const": "linux" - } - ], - "minItems": 2, - "maxItems": 2, - "additionalItems": { - "type": "string" - } - }, - { - "items": [ - { - "const": "windows" + "type": "string" } ], - "minItems": 2, - "maxItems": 2, - "additionalItems": { - "type": "string" - } + "minItems": 1 } ] }, @@ -723,6 +612,9 @@ }, { "$ref": "#/definitions/stringContainingExpressionSyntax" + }, + { + "$ref": "#/definitions/expressionSyntax" } ] }, @@ -904,7 +796,7 @@ "fail-fast": { "$comment": "https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast", "description": "When set to true, GitHub cancels all in-progress jobs if any matrix job fails. Default: true", - "type": "boolean", + "type": ["boolean", "string"], "default": true }, "max-parallel": { diff --git a/src/check_jsonschema/builtin_schemas/vendor/github-workflows.sha256 b/src/check_jsonschema/builtin_schemas/vendor/github-workflows.sha256 index 23cdc24a0..80ed8c423 100644 --- a/src/check_jsonschema/builtin_schemas/vendor/github-workflows.sha256 +++ b/src/check_jsonschema/builtin_schemas/vendor/github-workflows.sha256 @@ -1 +1 @@ -555a0121150e7241672f6496c568ccc317a06fcf5115ab248a0351aeb1cba65a \ No newline at end of file +d6b4a34d766fdb5f328dd0580fb6845470a25e4c1dca0b5d1459724193e26bde \ No newline at end of file diff --git a/src/check_jsonschema/builtin_schemas/vendor/gitlab-ci.json b/src/check_jsonschema/builtin_schemas/vendor/gitlab-ci.json index 0420ffb82..308a68544 100644 --- a/src/check_jsonschema/builtin_schemas/vendor/gitlab-ci.json +++ b/src/check_jsonschema/builtin_schemas/vendor/gitlab-ci.json @@ -2093,9 +2093,15 @@ "description": "A path to a directory that contains the files to be published with Pages", "type": "string" }, - "pages_path_prefix": { - "description": "The path prefix identifier for this version of pages. Allows creation of multiple versions of the same site with different path prefixes", - "type": "string" + "pages": { + "type": "object", + "additionalProperties": false, + "properties": { + "path_prefix": { + "type": "string", + "markdownDescription": "The GitLab Pages URL path prefix used in this version of pages." + } + } } }, "oneOf": [ diff --git a/src/check_jsonschema/builtin_schemas/vendor/gitlab-ci.sha256 b/src/check_jsonschema/builtin_schemas/vendor/gitlab-ci.sha256 index 47b23ba92..74fa4d63d 100644 --- a/src/check_jsonschema/builtin_schemas/vendor/gitlab-ci.sha256 +++ b/src/check_jsonschema/builtin_schemas/vendor/gitlab-ci.sha256 @@ -1 +1 @@ -d8853998ead8e2452590fbc9f66466ba79760f8e57cc395b5ece2d8a97755e3a \ No newline at end of file +3d9c02dd6ed7e1f948fe5d0d0cacee98c7b270923b956ce13a478c40f92c25f1 \ No newline at end of file diff --git a/src/check_jsonschema/builtin_schemas/vendor/readthedocs.json b/src/check_jsonschema/builtin_schemas/vendor/readthedocs.json index 51cdcb3ad..d15142bff 100644 --- a/src/check_jsonschema/builtin_schemas/vendor/readthedocs.json +++ b/src/check_jsonschema/builtin_schemas/vendor/readthedocs.json @@ -54,175 +54,77 @@ "title": "Build", "description": "Configuration for the documentation build process.", "type": "object", - "anyOf": [ - { + "properties": { + "os": { + "title": "Operating System", + "description": "Operating system to be used in the build.", + "enum": [ + "ubuntu-20.04", + "ubuntu-22.04" + ] + }, + "jobs": { + "title": "Build jobs", + "description": "Run custom commands at any point in the build process", + "type": "object", "properties": { - "image": { - "title": "Image", - "description": "DEPRECATED: use build.os instead.\n\nThe build docker image to be used.", - "enum": [ - "stable", - "latest" - ], - "default": "latest", - "deprecated": true + "post_checkout": { + "type": "array", + "items": { + "title": "Custom commands", + "type": "string" + } }, - "apt_packages": { - "title": "APT Packages", - "description": "List of packages to be installed with apt-get.", + "pre_system_dependencies": { "type": "array", "items": { - "title": "APT Package", + "title": "Custom commands", "type": "string" - }, - "default": [] - } - }, - "additionalProperties": false - }, - { - "properties": { - "os": { - "title": "Operating System", - "description": "Operating system to be used in the build.", - "enum": [ - "ubuntu-20.04", - "ubuntu-22.04" - ] + } }, - "jobs": { - "title": "Build jobs", - "description": "Run custom commands at any point in the build process", - "type": "object", - "properties": { - "post_checkout": { - "type": "array", - "items": { - "title": "Custom commands", - "type": "string" - } - }, - "pre_system_dependencies": { - "type": "array", - "items": { - "title": "Custom commands", - "type": "string" - } - }, - "post_system_dependencies": { - "type": "array", - "items": { - "title": "Custom commands", - "type": "string" - } - }, - "pre_create_environment": { - "type": "array", - "items": { - "title": "Custom commands", - "type": "string" - } - }, - "post_create_environment": { - "type": "array", - "items": { - "title": "Custom commands", - "type": "string" - } - }, - "pre_install": { - "type": "array", - "items": { - "title": "Custom commands", - "type": "string" - } - }, - "post_install": { - "type": "array", - "items": { - "title": "Custom commands", - "type": "string" - } - }, - "pre_build": { - "type": "array", - "items": { - "title": "Custom commands", - "type": "string" - } - }, - "post_build": { - "type": "array", - "items": { - "title": "Custom commands", - "type": "string" - } - } - }, - "additionalProperties": false + "post_system_dependencies": { + "type": "array", + "items": { + "title": "Custom commands", + "type": "string" + } }, - "tools": { - "title": "Tools", - "description": "Tools and their version to be used in the build.", - "type": "object", - "properties": { - "python": { - "enum": [ - "2.7", - "3", - "3.6", - "3.7", - "3.8", - "3.9", - "3.10", - "3.11", - "miniconda3-4.7", - "mambaforge-4.10", - "mambaforge-22.9" - ] - }, - "nodejs": { - "enum": [ - "14", - "16", - "18", - "19", - "20" - ] - }, - "rust": { - "enum": [ - "1.55", - "1.61", - "1.64", - "1.70" - ] - }, - "golang": { - "enum": [ - "1.17", - "1.18", - "1.19", - "1.20" - ] - } - }, - "minProperties": 1, - "additionalProperties": false + "pre_create_environment": { + "type": "array", + "items": { + "title": "Custom commands", + "type": "string" + } }, - "apt_packages": { - "title": "APT Packages", - "description": "List of packages to be installed with apt-get.", + "post_create_environment": { "type": "array", "items": { - "title": "APT Package", + "title": "Custom commands", "type": "string" - }, - "default": [] + } + }, + "pre_install": { + "type": "array", + "items": { + "title": "Custom commands", + "type": "string" + } + }, + "post_install": { + "type": "array", + "items": { + "title": "Custom commands", + "type": "string" + } }, - "commands": { - "title": "Build commands", - "description": "Override the whole build process with custom commands. When using this option, none of the commands from build.jobs will be executed.", + "pre_build": { + "type": "array", + "items": { + "title": "Custom commands", + "type": "string" + } + }, + "post_build": { "type": "array", "items": { "title": "Custom commands", @@ -230,37 +132,89 @@ } } }, - "required": [ - "os", - "tools" - ], "additionalProperties": false + }, + "tools": { + "title": "Tools", + "description": "Tools and their version to be used in the build.", + "type": "object", + "properties": { + "python": { + "enum": [ + "2.7", + "3", + "3.6", + "3.7", + "3.8", + "3.9", + "3.10", + "3.11", + "3.12", + "miniconda3-4.7", + "mambaforge-4.10", + "mambaforge-22.9" + ] + }, + "nodejs": { + "enum": [ + "14", + "16", + "18", + "19", + "20" + ] + }, + "rust": { + "enum": [ + "1.55", + "1.61", + "1.64", + "1.70" + ] + }, + "golang": { + "enum": [ + "1.17", + "1.18", + "1.19", + "1.20" + ] + } + }, + "minProperties": 1, + "additionalProperties": false + }, + "apt_packages": { + "title": "APT Packages", + "description": "List of packages to be installed with apt-get.", + "type": "array", + "items": { + "title": "APT Package", + "type": "string" + }, + "default": [] + }, + "commands": { + "title": "Build commands", + "description": "Override the whole build process with custom commands. When using this option, none of the commands from build.jobs will be executed.", + "type": "array", + "items": { + "title": "Custom commands", + "type": "string" + } } - ] + }, + "required": [ + "os", + "tools" + ], + "additionalProperties": false }, "python": { "title": "Python", "description": "Configuration of the Python environment to be used.", "type": "object", "properties": { - "version": { - "title": "Version", - "description": "DEPRECATED: use build.tools.python instead.\n\nThe Python version to activate for your build (availability of Python versions depend on the build image).", - "type": "string", - "enum": [ - "2", - "2.7", - "3", - "3.3", - "3.4", - "3.5", - "3.6", - "3.7", - "3.8" - ], - "default": "3", - "deprecated": true - }, "install": { "title": "Install", "description": "Installation of packages and requiremens.", diff --git a/src/check_jsonschema/builtin_schemas/vendor/readthedocs.sha256 b/src/check_jsonschema/builtin_schemas/vendor/readthedocs.sha256 index e8fbe341d..b738b3da3 100644 --- a/src/check_jsonschema/builtin_schemas/vendor/readthedocs.sha256 +++ b/src/check_jsonschema/builtin_schemas/vendor/readthedocs.sha256 @@ -1 +1 @@ -352e6d65ec70468220aa6f63505c29fd0e083ae271a8bb2aaa7aefccef66c10e \ No newline at end of file +bc2acddb726add210a7039dfbc2931951d2aed1cbd9f2d073941729f6b8d186b \ No newline at end of file diff --git a/src/check_jsonschema/builtin_schemas/vendor/renovate.json b/src/check_jsonschema/builtin_schemas/vendor/renovate.json index 5a8fcaad2..2f860d43b 100644 --- a/src/check_jsonschema/builtin_schemas/vendor/renovate.json +++ b/src/check_jsonschema/builtin_schemas/vendor/renovate.json @@ -421,7 +421,7 @@ "default": 10080 }, "cacheTtlOverride": { - "description": "An object that contains cache namespace TTL override values", + "description": "An object that contains cache namespace TTL override values.", "type": "object", "default": {}, "$ref": "#" @@ -624,7 +624,7 @@ "$ref": "#" }, "customDatasources": { - "description": "Defines custom datasources for usage by managers", + "description": "Defines custom datasources for usage by managers.", "type": "object", "default": {}, "$ref": "#", @@ -638,12 +638,12 @@ "description": "A custom description for this configuration object" }, "defaultRegistryUrlTemplate": { - "description": "Template for generating a defaultRegistryUrl for custom datasource", + "description": "Template for generating a `defaultRegistryUrl` for custom datasource.", "type": "string", "default": "" }, "format": { - "description": "Format of the custom datasource", + "description": "Format of the custom datasource.", "type": "string", "enum": [ "json", @@ -652,7 +652,7 @@ "default": "json" }, "transformTemplates": { - "description": "List of jsonata transformation rules", + "description": "List of jsonata transformation rules.", "type": "array", "items": { "type": "string" @@ -750,7 +750,7 @@ "default": [] }, "customizeDashboard": { - "description": "Customize sections in the dependency dashboard issue.", + "description": "Customize sections in the Dependency Dashboard issue.", "type": "object", "default": {}, "additionalProperties": { @@ -880,7 +880,7 @@ "dockerSidecarImage": { "description": "Change this value to override the default Renovate sidecar image.", "type": "string", - "default": "ghcr.io/containerbase/sidecar:9.20.4" + "default": "ghcr.io/containerbase/sidecar:9.23.9" }, "dockerUser": { "description": "Set the `UID` and `GID` for Docker-based binaries if you use `binarySource=docker`.", @@ -1197,7 +1197,7 @@ } }, "goGetDirs": { - "description": "Directory pattern to run `go get` on", + "description": "Directory pattern to run `go get` on.", "type": "array", "items": { "type": "string" @@ -1382,7 +1382,7 @@ "default": false }, "artifactAuth": { - "description": "A list of package managers to enable artifact auth. Only managers on the list are enabled. All are enabled if `null`", + "description": "A list of package managers to enable artifact auth. Only managers on the list are enabled. All are enabled if `null`.", "type": "array", "items": { "type": "string", @@ -1456,12 +1456,7 @@ } } ] - }, - "default": [ - { - "timeout": 60000 - } - ] + } }, "html": { "description": "Configuration object for the html manager", @@ -2067,7 +2062,7 @@ "type": "string" }, "matchCurrentVersion": { - "description": "A version or range of versions to match against the current version of a package. Valid only within a `packageRules` object.", + "description": "A version, or range of versions, to match against the current version of a package. Valid only within a `packageRules` object.", "type": "string" }, "matchDatasources": { @@ -2695,7 +2690,8 @@ "fileMatch": [ "(^|/)\\.python-version$" ], - "versioning": "docker" + "versioning": "docker", + "pinDigests": false }, "$ref": "#" }, @@ -3057,7 +3053,7 @@ "$ref": "#" }, "timezone": { - "description": "[IANA Time Zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)", + "description": "Must conform to [IANA Time Zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) format.", "type": "string" }, "token": { @@ -3120,9 +3116,9 @@ "type": "object", "default": { "ignoreTopic": "Renovate Ignore Notification", - "ignoreMajor": "Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for *any* future {{{newMajor}}}.x releases. But if you manually upgrade to {{{newMajor}}}.x then Renovate will re-enable `minor` and `patch` updates automatically.", + "ignoreMajor": "Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for *any* future `{{{newMajor}}}.x` releases. But if you manually upgrade to `{{{newMajor}}}.x` then Renovate will re-enable `minor` and `patch` updates automatically.", "ignoreDigest": "Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for the `{{{depName}}}` `{{{newDigestShort}}}` update again.", - "ignoreOther": "Because you closed this PR without merging, Renovate will ignore this update ({{{newValue}}}). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the `ignoreDeps` array of your Renovate config." + "ignoreOther": "Because you closed this PR without merging, Renovate will ignore this update (`{{{newValue}}}`). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the `ignoreDeps` array of your Renovate config." } }, "username": { @@ -3139,6 +3135,11 @@ }, "$ref": "#" }, + "versionCompatibility": { + "description": "A regex (`re2`) with named capture groups to show how version and compatibility are split from a raw version string.", + "type": "string", + "format": "regex" + }, "versioning": { "description": "Versioning to use for filtering and comparisons.", "type": "string", diff --git a/src/check_jsonschema/builtin_schemas/vendor/renovate.sha256 b/src/check_jsonschema/builtin_schemas/vendor/renovate.sha256 index d2a307699..23fb870bc 100644 --- a/src/check_jsonschema/builtin_schemas/vendor/renovate.sha256 +++ b/src/check_jsonschema/builtin_schemas/vendor/renovate.sha256 @@ -1 +1 @@ -22c8956410e52143faee5efd537aca3f69fd71fedaec720a2d7e665f2c970850 \ No newline at end of file +d381330186745f5f9c9594bf3d3e5280805c48fed0d708662d20559d6b45603a \ No newline at end of file