diff --git a/package-lock.json b/package-lock.json index e475ae1b621..467c4c80d1c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -604,9 +604,9 @@ "license": "MIT" }, "node_modules/brace-expansion": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.14.tgz", - "integrity": "sha512-MWPGfDxnyzKU7rNOW9SP/c50vi3xrmrua/+6hfPbCS2ABNWfx24vPidzvC7krjU/RTo235sV776ymlsMtGKj8g==", + "version": "1.1.16", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.16.tgz", + "integrity": "sha512-IDw48K2/2kRkg9LdJxurvq3lV3aBgq0REY89duEqFRthjlPdXHKMj7EnQOXVckxzgisinf3nHfrcE2FufFLXMw==", "dev": true, "license": "MIT", "dependencies": { diff --git a/src/api/json/catalog.json b/src/api/json/catalog.json index 61b4d14ddc1..a66f5336354 100644 --- a/src/api/json/catalog.json +++ b/src/api/json/catalog.json @@ -815,6 +815,7 @@ "url": "https://raw.githubusercontent.com/ClementTsang/bottom/main/schema/v0.10/bottom.json", "versions": { "nightly": "https://raw.githubusercontent.com/ClementTsang/bottom/main/schema/nightly/bottom.json", + "0.14.9": "https://raw.githubusercontent.com/ClementTsang/bottom/main/schema/v0.14.9/bottom.json", "0.14.7": "https://raw.githubusercontent.com/ClementTsang/bottom/main/schema/v0.14.7/bottom.json", "0.14.0": "https://raw.githubusercontent.com/ClementTsang/bottom/main/schema/v0.14.0/bottom.json", "0.13.0": "https://raw.githubusercontent.com/ClementTsang/bottom/main/schema/v0.13.0/bottom.json", @@ -1347,6 +1348,18 @@ "description": "Deploy config for BOSH CLI", "url": "https://www.schemastore.org/bosh-deploy-config.json" }, + { + "name": "BOSH Job Spec", + "description": "Job Spec for BOSH Releases", + "fileMatch": ["**/jobs/*/spec"], + "url": "https://www.schemastore.org/bosh-job-spec.json" + }, + { + "name": "BOSH Package Spec", + "description": "Package Spec for BOSH Releases", + "fileMatch": ["**/packages/*/spec"], + "url": "https://www.schemastore.org/bosh-package-spec.json" + }, { "name": "Boyka Framework", "description": "Boyka Framework config file", @@ -1983,6 +1996,16 @@ ], "url": "https://cdnx.deploystack.io/schema/config.yml.json" }, + { + "name": "Design Tokens Community Group format", + "description": "Design token files using the DTCG format", + "url": "https://www.designtokens.org/schemas/2025.10/format.json" + }, + { + "name": "Design Tokens Community Group resolver", + "description": "DTCG resolver documents", + "url": "https://www.designtokens.org/schemas/2025.10/resolver.json" + }, { "name": "Deta Spacefile", "description": "Configuration file for Space Apps", @@ -2838,13 +2861,13 @@ "name": "Dolittle Tenant Map Configuration", "description": "A Dolittle bounded context's tenant mapping configurations", "fileMatch": ["**/.dolittle/tenant-map.json"], - "url": "https://raw.githubusercontent.com/dolittle/DotNET.Fundamentals/master/Schemas/Tenancy.Configuration/tenant-map.json" + "url": "https://raw.githubusercontent.com/dolittle-obsolete/DotNET.Fundamentals/v4.10.0/Schemas/Tenancy.Configuration/tenant-map.json" }, { "name": "Dolittle Topology", "description": "A Dolittle bounded context's topology", "fileMatch": ["**/.dolittle/topology.json"], - "url": "https://raw.githubusercontent.com/dolittle/DotNET.SDK/master/Schemas/Applications.Configuration/topology.json" + "url": "https://raw.githubusercontent.com/dolittle/DotNET.SDK/v5.0.0/Schemas/Applications.Configuration/topology.json" }, { "name": "dotnet Release Index manifest", @@ -2916,7 +2939,7 @@ "fileMatch": ["devfile.yaml", ".devfile.yaml"], "url": "https://raw.githubusercontent.com/devfile/api/v2.2.0/schemas/latest/devfile.json", "versions": { - "1.0.0": "https://raw.githubusercontent.com/eclipse-che/che-server/master/wsmaster/che-core-api-workspace/src/main/resources/schema/1.0.0/devfile.json", + "1.0.0": "https://raw.githubusercontent.com/eclipse-che/che-server/7.80.0/wsmaster/che-core-api-workspace/src/main/resources/schema/1.0.0/devfile.json", "2.0.0": "https://raw.githubusercontent.com/devfile/api/v2.0.0/schemas/latest/devfile.json", "2.1.0": "https://raw.githubusercontent.com/devfile/api/v2.1.0/schemas/latest/devfile.json", "2.2.0": "https://raw.githubusercontent.com/devfile/api/v2.2.0/schemas/latest/devfile.json" @@ -4100,7 +4123,7 @@ "name": "tree-sitter grammar.json", "description": "tree-sitter grammar.json", "fileMatch": ["grammar.json"], - "url": "https://raw.githubusercontent.com/tree-sitter/tree-sitter/master/docs/assets/schemas/config.schema.json" + "url": "https://raw.githubusercontent.com/tree-sitter/tree-sitter/master/docs/src/assets/schemas/config.schema.json" }, { "name": "Treefmt", @@ -4607,7 +4630,7 @@ { "name": "JSON-API", "description": "JSON API document", - "url": "https://jsonapi.org/schema" + "url": "https://raw.githubusercontent.com/json-api/json-api/v1.1/schema" }, { "name": "JSON Document Transform", @@ -6959,28 +6982,31 @@ { "name": "SDMX structure message", "description": "Statistical Data and Metadata eXchange (ISO 17369) structure message", - "url": "https://raw.githubusercontent.com/sdmx-twg/sdmx-json/master/structure-message/tools/schemas/2.0.0/sdmx-json-structure-schema.json", + "url": "https://json.sdmx.org/2.1/sdmx-json-structure-schema.json", "versions": { - "1.0": "https://raw.githubusercontent.com/sdmx-twg/sdmx-json/master/structure-message/tools/schemas/1.0/sdmx-json-structure-schema.json", - "2.0.0": "https://raw.githubusercontent.com/sdmx-twg/sdmx-json/master/structure-message/tools/schemas/2.0.0/sdmx-json-structure-schema.json" + "1.0": "https://json.sdmx.org/1.0/sdmx-json-structure-schema.json", + "2.0.0": "https://json.sdmx.org/2.0.0/sdmx-json-structure-schema.json", + "2.1": "https://json.sdmx.org/2.1/sdmx-json-structure-schema.json" } }, { "name": "SDMX metadata message", "description": "Statistical Data and Metadata eXchange (ISO 17369) metadata message", - "url": "https://raw.githubusercontent.com/sdmx-twg/sdmx-json/master/metadata-message/tools/schemas/2.0.0/sdmx-json-metadata-schema.json", + "url": "https://json.sdmx.org/2.1/sdmx-json-metadata-schema.json", "versions": { - "1.0": "https://raw.githubusercontent.com/sdmx-twg/sdmx-json/master/metadata-message/tools/schemas/1.0/sdmx-json-metadata-schema.json", - "2.0.0": "https://raw.githubusercontent.com/sdmx-twg/sdmx-json/master/metadata-message/tools/schemas/2.0.0/sdmx-json-metadata-schema.json" + "1.0": "https://json.sdmx.org/1.0/sdmx-json-metadata-schema.json", + "2.0.0": "https://json.sdmx.org/2.0.0/sdmx-json-metadata-schema.json", + "2.1": "https://json.sdmx.org/2.1/sdmx-json-metadata-schema.json" } }, { "name": "SDMX data message", "description": "Statistical Data and Metadata eXchange (ISO 17369) data message", - "url": "https://raw.githubusercontent.com/sdmx-twg/sdmx-json/master/data-message/tools/schemas/2.0.0/sdmx-json-data-schema.json", + "url": "https://json.sdmx.org/2.1/sdmx-json-data-schema.json", "versions": { - "1.0": "https://raw.githubusercontent.com/sdmx-twg/sdmx-json/master/data-message/tools/schemas/1.0/sdmx-json-data-schema.json", - "2.0.0": "https://raw.githubusercontent.com/sdmx-twg/sdmx-json/master/data-message/tools/schemas/2.0.0/sdmx-json-data-schema.json" + "1.0": "https://json.sdmx.org/1.0/sdmx-json-data-schema.json", + "2.0.0": "https://json.sdmx.org/2.0.0/sdmx-json-data-schema.json", + "2.1": "https://json.sdmx.org/2.1/sdmx-json-data-schema.json" } }, { @@ -7536,7 +7562,7 @@ "**/.connect/sources/*.yml", "**/.connect/sinks/*.yml" ], - "url": "https://raw.githubusercontent.com/synadia-io/connect/main/schemas/component.json" + "url": "https://raw.githubusercontent.com/synadia-io/connect/b647c6bc4448f7790c5a97ce39daae405ead0f0a/schemas/component.json" }, { "name": "Tach", @@ -10827,6 +10853,24 @@ "1.0": "https://schema.agentcore.aws.dev/v1/agentcore.json" } }, + { + "name": "AgentCtl config", + "description": "agentctl config file (.ai/config.yaml): runtimes, project name, and sync settings for AI coding-agent configuration", + "fileMatch": ["**/.ai/config.yaml", "**/.ai/config.yml"], + "url": "https://raw.githubusercontent.com/itslab42/agentctl/main/schemas/config.schema.json" + }, + { + "name": "AgentCtl MCP", + "description": "agentctl MCP server declarations (.ai/mcp.yaml): Model Context Protocol servers rendered into each runtime's format", + "fileMatch": ["**/.ai/mcp.yaml", "**/.ai/mcp.yml"], + "url": "https://raw.githubusercontent.com/itslab42/agentctl/main/schemas/mcp.schema.json" + }, + { + "name": "AgentCtl permissions", + "description": "agentctl runtime-neutral permissions (.ai/permissions.yaml): filesystem and shell rules using deny-over-allow precedence", + "fileMatch": ["**/.ai/permissions.yaml", "**/.ai/permissions.yml"], + "url": "https://raw.githubusercontent.com/itslab42/agentctl/main/schemas/permissions.schema.json" + }, { "name": "AgentLoopKit", "description": "Configuration file for AgentLoopKit, a repo-level engineering loop for coding agents", diff --git a/src/schemas/json/agripparc-1.2.json b/src/schemas/json/agripparc-1.2.json index ae2c2f35922..240ec180b52 100644 --- a/src/schemas/json/agripparc-1.2.json +++ b/src/schemas/json/agripparc-1.2.json @@ -1,12 +1,12 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/agripparc-1.2.json", "additionalProperties": false, - "id": "https://json.schemastore.org/agripparc-1.2.json", "properties": { "$schema": { "description": "Link to https://www.schemastore.org/agripparc-1.2.json", "type": "string", - "enum": ["https://www.schemastore.org/agripparc-1.2.json"] + "const": "https://www.schemastore.org/agripparc-1.2.json" }, "props": { "description": "Which prop declaration method to use", diff --git a/src/schemas/json/agripparc-1.3.json b/src/schemas/json/agripparc-1.3.json index be262141abf..fe3cc0753f9 100644 --- a/src/schemas/json/agripparc-1.3.json +++ b/src/schemas/json/agripparc-1.3.json @@ -1,12 +1,12 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/agripparc-1.3.json", "additionalProperties": false, - "id": "https://json.schemastore.org/agripparc-1.3.json", "properties": { "$schema": { "description": "Link to https://www.schemastore.org/agripparc-1.3.json", "type": "string", - "enum": ["https://www.schemastore.org/agripparc-1.3.json"] + "const": "https://www.schemastore.org/agripparc-1.3.json" }, "props": { "description": "Which prop declaration method to use", diff --git a/src/schemas/json/agripparc-1.4.json b/src/schemas/json/agripparc-1.4.json index 3d008657bef..1da24f7a231 100644 --- a/src/schemas/json/agripparc-1.4.json +++ b/src/schemas/json/agripparc-1.4.json @@ -1,12 +1,12 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/agripparc-1.4.json", "additionalProperties": false, - "id": "https://json.schemastore.org/agripparc-1.4.json", "properties": { "$schema": { "description": "Link to https://www.schemastore.org/agripparc-1.4.json", "type": "string", - "enum": ["https://www.schemastore.org/agripparc-1.4.json"] + "const": "https://www.schemastore.org/agripparc-1.4.json" }, "props": { "description": "Which prop declaration method to use", diff --git a/src/schemas/json/bosh-job-spec.json b/src/schemas/json/bosh-job-spec.json new file mode 100644 index 00000000000..285ce0957fb --- /dev/null +++ b/src/schemas/json/bosh-job-spec.json @@ -0,0 +1,108 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/bosh-job-spec.json", + "$comment": "Schema built from https://bosh.io/docs/jobs/.", + "$ref": "#/definitions/JobSpec", + "title": "BOSH Job Spec", + "description": "Job Spec for BOSH Releases.\n\nDocs: https://bosh.io/docs/jobs/", + "definitions": { + "JobSpec": { + "type": "object", + "required": ["name"], + "properties": { + "name": { + "type": "string", + "description": "Name of the job." + }, + "description": { + "type": "string", + "description": "Describes purpose of the job." + }, + "templates": { "$ref": "#/definitions/Templates" }, + "packages": { + "type": "array", + "description": "Package dependencies required by the job at runtime.", + "items": { "type": "string" } + }, + "consumes": { + "type": "array", + "items": { "$ref": "#/definitions/Consumes" } + }, + "provides": { + "type": "array", + "items": { "$ref": "#/definitions/Provides" } + }, + "properties": { "$ref": "#/definitions/Properties" } + } + }, + "Templates": { + "type": "object", + "description": "Template files found in the templates directory of the job without the `.erb` suffix (keys of the Hash) and their final destinations (values of the Hash), relative to the job directory on the deployed VMs.", + "additionalProperties": { "type": "string" } + }, + "Consumes": { + "type": "object", + "description": "Links that are consumed by the job for rendering ERB templates.", + "required": ["name", "type"], + "properties": { + "name": { + "type": "string", + "description": "Name of the link to find." + }, + "type": { + "type": "string", + "description": "Type of the link to be found.\n\nCommon link types: https://bosh.io/docs/links-common-types/" + }, + "optional": { + "type": "boolean", + "description": "Whether finding an matching link is optional", + "default": false + } + } + }, + "Provides": { + "type": "object", + "description": "Links that are exposed to other jobs for rendering their ERB templates.", + "required": ["name", "type"], + "properties": { + "name": { + "type": "string", + "description": "Name of the exposed link." + }, + "type": { + "type": "string", + "description": "Type of the exposed link." + }, + "properties": { + "type": "array", + "description": "List of property keys in dot notation", + "items": { "type": "string" } + } + } + }, + "Properties": { + "type": "object", + "description": "Configuration options supported by the job.", + "additionalProperties": { + "type": "object", + "required": ["description"], + "properties": { + "description": { + "type": "string", + "description": "Describes purpose of the property. This is not used by the Director, but is displayed in job configuration details provided by the [release index](https://bosh.io/releases/)." + }, + "type": { + "type": "string", + "description": "The type of the property. This is only a convention for release authors to provide a type when they estimate it useful" + }, + "example": { + "description": "Example value to be displayed in the [release index](https://bosh.io/releases/)." + }, + "default": { + "description": "The default value for the property." + } + } + } + } + } +} diff --git a/src/schemas/json/bosh-package-spec.json b/src/schemas/json/bosh-package-spec.json new file mode 100644 index 00000000000..d9664394081 --- /dev/null +++ b/src/schemas/json/bosh-package-spec.json @@ -0,0 +1,39 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://www.schemastore.org/bosh-package-spec.json", + "$ref": "#/definitions/PackageSpec", + "title": "BOSH Package Spec", + "description": "Package Spec for BOSH Releases\n\nDocs: https://bosh.io/docs/packages/", + "definitions": { + "PackageSpec": { + "type": "object", + "required": ["name", "files"], + "properties": { + "name": { + "type": "string", + "description": "The package name." + }, + "dependencies": { + "type": "array", + "description": "List of other packages that this package depends on.", + "items": { "type": "string" } + }, + "files": { + "type": "array", + "description": "List of files that this package contains, either explicitly and/or through pattern-matching.", + "items": { "type": "string" } + }, + "excluded_files": { + "type": "array", + "description": "List of files to be excluded from the package, either explicitly and/or through pattern-matching. Applies on top of `files`.", + "items": { "type": "string" } + }, + "no_compression": { + "type": "boolean", + "description": "Whether compression is disabled for the individual package tarball.", + "default": false + } + } + } + } +} diff --git a/src/schemas/json/component-detection-manifest.json b/src/schemas/json/component-detection-manifest.json index 638679657f2..bab4c417334 100644 --- a/src/schemas/json/component-detection-manifest.json +++ b/src/schemas/json/component-detection-manifest.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/component-detection-manifest.json", "$ref": "#/definitions/CGManifest", "definitions": { "ActorInfo": { @@ -128,7 +129,7 @@ "properties": { "type": { "type": "string", - "enum": ["cargo"] + "const": "cargo" }, "cargo": { "type": "object", @@ -179,7 +180,7 @@ "properties": { "type": { "type": "string", - "enum": ["git"] + "const": "git" }, "git": { "type": "object", @@ -234,7 +235,7 @@ "properties": { "type": { "type": "string", - "enum": ["go"] + "const": "go" }, "go": { "type": "object", @@ -285,7 +286,7 @@ "properties": { "type": { "type": "string", - "enum": ["linux"] + "const": "linux" }, "linux": { "type": "object", @@ -350,7 +351,7 @@ "properties": { "type": { "type": "string", - "enum": ["maven"] + "const": "maven" }, "maven": { "type": "object", @@ -404,7 +405,7 @@ "properties": { "type": { "type": "string", - "enum": ["npm"] + "const": "npm" }, "npm": { "type": "object", @@ -455,7 +456,7 @@ "properties": { "type": { "type": "string", - "enum": ["nuget"] + "const": "nuget" }, "nuget": { "type": "object", @@ -506,7 +507,7 @@ "properties": { "type": { "type": "string", - "enum": ["other"] + "const": "other" }, "other": { "title": "Other", @@ -560,7 +561,7 @@ "properties": { "type": { "type": "string", - "enum": ["pip"] + "const": "pip" }, "pip": { "type": "object", @@ -611,7 +612,7 @@ "properties": { "type": { "type": "string", - "enum": ["pod"] + "const": "pod" }, "pod": { "type": "object", @@ -662,7 +663,7 @@ "properties": { "type": { "type": "string", - "enum": ["rubygems"] + "const": "rubygems" }, "rubygems": { "type": "object", @@ -713,7 +714,7 @@ "properties": { "type": { "type": "string", - "enum": ["vcpkg"] + "const": "vcpkg" }, "vcpkg": { "type": "object", @@ -774,6 +775,5 @@ "required": ["type", "vcpkg"] } }, - "id": "https://json.schemastore.org/component-detection-manifest.json", "title": "Component Detection manifest" } diff --git a/src/schemas/json/content-security-policy-report-2.json b/src/schemas/json/content-security-policy-report-2.json index c67aa94663d..f51796dc071 100644 --- a/src/schemas/json/content-security-policy-report-2.json +++ b/src/schemas/json/content-security-policy-report-2.json @@ -1,8 +1,8 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/content-security-policy-report-2.json", "additionalProperties": false, "description": "https://www.w3.org/TR/CSP2/#violation-reports", - "id": "https://json.schemastore.org/content-security-policy-report-2.json", "properties": { "csp-report": { "type": "object", diff --git a/src/schemas/json/cosmos-config.json b/src/schemas/json/cosmos-config.json index 684760cd1e6..9c64beaa29a 100644 --- a/src/schemas/json/cosmos-config.json +++ b/src/schemas/json/cosmos-config.json @@ -1,7 +1,7 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/cosmos-config.json", "additionalProperties": false, - "id": "https://json.schemastore.org/cosmos-config.json", "properties": { "$schema": { "type": "string" @@ -192,8 +192,15 @@ "properties": { "containerQuerySelector": { "description": "Document selector for existing element to use as component parent (eg. #root). A blank container element is created from scratch if no selector is provided. [default: null]", - "type": ["string", "null"], - "minLength": 1 + "anyOf": [ + { + "type": "string", + "minLength": 1 + }, + { + "type": "null" + } + ] } } }, @@ -210,7 +217,7 @@ "minLength": 1 }, { - "enum": [false] + "const": false } ] }, diff --git a/src/schemas/json/csscomb.json b/src/schemas/json/csscomb.json index afa9ecd4661..a70d75af014 100644 --- a/src/schemas/json/csscomb.json +++ b/src/schemas/json/csscomb.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://json.schemastore.org/csscomb.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/csscomb.json", "properties": { "exclude": { "description": "A list of files to ignore in the current project\nhttps://github.com/csscomb/csscomb.js/blob/dev/doc/configuration.md#create-custom-config", diff --git a/src/schemas/json/detekt-1.14.1.json b/src/schemas/json/detekt-1.14.1.json index 09ed283be3a..d01149ff81e 100644 --- a/src/schemas/json/detekt-1.14.1.json +++ b/src/schemas/json/detekt-1.14.1.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://json.schemastore.org/detekt-1.14.1.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/detekt-1.14.1.json", "properties": { "build": { "type": "object", @@ -12,10 +12,17 @@ "type": "boolean" }, "weights": { - "type": ["object", "null"], - "additionalProperties": { - "type": "number" - } + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "type": "number" + } + }, + { + "type": "null" + } + ] } } }, @@ -68,10 +75,17 @@ "type": "boolean" }, "exclude": { - "type": ["array", "null"], - "items": { - "type": "string" - } + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } } }, diff --git a/src/schemas/json/detekt-1.22.0.json b/src/schemas/json/detekt-1.22.0.json index 2ab85f08283..2fae55f0673 100644 --- a/src/schemas/json/detekt-1.22.0.json +++ b/src/schemas/json/detekt-1.22.0.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/detekt-1.22.0.json", "$defs": { "ruleProperties": { "type": "object", @@ -28,7 +29,6 @@ } } }, - "id": "https://json.schemastore.org/detekt-1.22.0.json", "properties": { "build": { "type": "object", @@ -113,12 +113,8 @@ "type": "boolean" }, "AbsentOrWrongFileLicense": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "licenseTemplateFile": { "type": "string" @@ -129,36 +125,20 @@ } }, "CommentOverPrivateFunction": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "CommentOverPrivateProperty": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "DeprecatedBlockTag": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "EndOfSentenceFormat": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "endOfSentenceFormat": { "type": "string" @@ -166,20 +146,12 @@ } }, "KDocReferencesNonPublicProperty": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "OutdatedDocumentation": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "matchTypeParameters": { "type": "boolean" @@ -193,12 +165,8 @@ } }, "UndocumentedPublicClass": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "searchInNestedClass": { "type": "boolean" @@ -218,12 +186,8 @@ } }, "UndocumentedPublicFunction": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "searchProtectedFunction": { "type": "boolean" @@ -231,12 +195,8 @@ } }, "UndocumentedPublicProperty": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "searchProtectedProperty": { "type": "boolean" @@ -252,12 +212,8 @@ "type": "boolean" }, "CognitiveComplexMethod": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "threshold": { "type": "integer" @@ -265,12 +221,8 @@ } }, "ComplexCondition": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "threshold": { "type": "integer" @@ -278,12 +230,8 @@ } }, "ComplexInterface": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "threshold": { "type": "integer" @@ -300,12 +248,8 @@ } }, "CyclomaticComplexMethod": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "threshold": { "type": "integer" @@ -328,12 +272,8 @@ } }, "LabeledExpression": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "ignoredLabels": { "type": "array", @@ -344,12 +284,8 @@ } }, "LargeClass": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "threshold": { "type": "integer" @@ -357,12 +293,8 @@ } }, "LongMethod": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "threshold": { "type": "integer" @@ -370,12 +302,8 @@ } }, "LongParameterList": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "functionThreshold": { "type": "integer" @@ -398,12 +326,8 @@ } }, "MethodOverloading": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "threshold": { "type": "integer" @@ -411,12 +335,8 @@ } }, "NamedArguments": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "threshold": { "type": "integer" @@ -427,12 +347,8 @@ } }, "NestedBlockDepth": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "threshold": { "type": "integer" @@ -440,12 +356,8 @@ } }, "NestedScopeFunctions": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "threshold": { "type": "integer" @@ -459,20 +371,12 @@ } }, "ReplaceSafeCallChainWithRun": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "StringLiteralDuplication": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "threshold": { "type": "integer" @@ -489,12 +393,8 @@ } }, "TooManyFunctions": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "thresholdInFiles": { "type": "integer" @@ -531,20 +431,12 @@ "type": "boolean" }, "GlobalCoroutineUsage": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "InjectDispatcher": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "dispatcherNames": { "type": "array", @@ -555,36 +447,20 @@ } }, "RedundantSuspendModifier": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "SleepInsteadOfDelay": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "SuspendFunWithCoroutineScopeReceiver": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "SuspendFunWithFlowReturnType": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" } } }, @@ -595,12 +471,8 @@ "type": "boolean" }, "EmptyCatchBlock": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "allowedExceptionNameRegex": { "type": "string" @@ -608,60 +480,32 @@ } }, "EmptyClassBlock": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "EmptyDefaultConstructor": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "EmptyDoWhileBlock": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "EmptyElseBlock": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "EmptyFinallyBlock": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "EmptyForBlock": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "EmptyFunctionBlock": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "ignoreOverridden": { "type": "boolean" @@ -669,60 +513,32 @@ } }, "EmptyIfBlock": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "EmptyInitBlock": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "EmptyKtFile": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "EmptySecondaryConstructor": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "EmptyTryBlock": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "EmptyWhenBlock": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "EmptyWhileBlock": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" } } }, @@ -733,12 +549,8 @@ "type": "boolean" }, "ExceptionRaisedInUnexpectedLocation": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "methodNames": { "type": "array", @@ -749,52 +561,28 @@ } }, "InstanceOfCheckForException": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "NotImplementedDeclaration": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "ObjectExtendsThrowable": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "PrintStackTrace": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "RethrowCaughtException": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "ReturnFromFinally": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "ignoreLabeled": { "type": "boolean" @@ -802,12 +590,8 @@ } }, "SwallowedException": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "ignoredExceptionTypes": { "type": "array", @@ -821,28 +605,16 @@ } }, "ThrowingExceptionFromFinally": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "ThrowingExceptionInMain": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "ThrowingExceptionsWithoutMessageOrCause": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "exceptions": { "type": "array", @@ -853,20 +625,12 @@ } }, "ThrowingNewInstanceOfSameException": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "TooGenericExceptionCaught": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "exceptionNames": { "type": "array", @@ -880,12 +644,8 @@ } }, "TooGenericExceptionThrown": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "exceptionNames": { "type": "array", @@ -904,12 +664,8 @@ "type": "boolean" }, "BooleanPropertyNaming": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "allowedPattern": { "type": "string" @@ -920,12 +676,8 @@ } }, "ClassNaming": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "classPattern": { "type": "string" @@ -933,12 +685,8 @@ } }, "ConstructorParameterNaming": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "parameterPattern": { "type": "string" @@ -955,12 +703,8 @@ } }, "EnumNaming": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "enumEntryPattern": { "type": "string" @@ -968,12 +712,8 @@ } }, "ForbiddenClassName": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "forbiddenName": { "type": "array", @@ -984,12 +724,8 @@ } }, "FunctionMaxLength": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "maximumFunctionNameLength": { "type": "integer" @@ -997,12 +733,8 @@ } }, "FunctionMinLength": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "minimumFunctionNameLength": { "type": "integer" @@ -1010,12 +742,8 @@ } }, "FunctionNaming": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "functionPattern": { "type": "string" @@ -1029,12 +757,8 @@ } }, "FunctionParameterNaming": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "parameterPattern": { "type": "string" @@ -1048,12 +772,8 @@ } }, "InvalidPackageDeclaration": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "rootPackage": { "type": "string" @@ -1064,12 +784,8 @@ } }, "LambdaParameterNaming": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "parameterPattern": { "type": "string" @@ -1077,12 +793,8 @@ } }, "MatchingDeclarationName": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "mustBeFirst": { "type": "boolean" @@ -1090,12 +802,8 @@ } }, "MemberNameEqualsClassName": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "ignoreOverridden": { "type": "boolean" @@ -1103,28 +811,16 @@ } }, "NoNameShadowing": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "NonBooleanPropertyPrefixedWithIs": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "ObjectPropertyNaming": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "constantPattern": { "type": "string" @@ -1138,12 +834,8 @@ } }, "PackageNaming": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "packagePattern": { "type": "string" @@ -1151,12 +843,8 @@ } }, "TopLevelPropertyNaming": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "constantPattern": { "type": "string" @@ -1170,12 +858,8 @@ } }, "VariableMaxLength": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "maximumVariableNameLength": { "type": "integer" @@ -1183,12 +867,8 @@ } }, "VariableMinLength": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "minimumVariableNameLength": { "type": "integer" @@ -1196,12 +876,8 @@ } }, "VariableNaming": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "variablePattern": { "type": "string" @@ -1226,20 +902,12 @@ "type": "boolean" }, "ArrayPrimitive": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "CouldBeSequence": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "threshold": { "type": "integer" @@ -1247,36 +915,20 @@ } }, "ForEachOnRange": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "SpreadOperator": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnnecessaryPartOfBinaryExpression": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnnecessaryTemporaryInstantiation": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" } } }, @@ -1287,12 +939,8 @@ "type": "boolean" }, "AvoidReferentialEquality": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "forbiddenTypePatterns": { "type": "array", @@ -1303,36 +951,20 @@ } }, "CastToNullableType": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "Deprecation": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "DontDowncastCollectionTypes": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "DoubleMutabilityForCollection": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "mutableTypes": { "type": "array", @@ -1343,60 +975,32 @@ } }, "ElseCaseInsteadOfExhaustiveWhen": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "EqualsAlwaysReturnsTrueOrFalse": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "EqualsWithHashCodeExist": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "ExitOutsideMain": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "ExplicitGarbageCollectionCall": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "HasPlatformType": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "IgnoredReturnValue": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "restrictToConfig": { "type": "boolean" @@ -1428,20 +1032,12 @@ } }, "ImplicitDefaultLocale": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "ImplicitUnitReturnType": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "allowExplicitReturnType": { "type": "boolean" @@ -1449,36 +1045,20 @@ } }, "InvalidRange": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "IteratorHasNextCallsNextMethod": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "IteratorNotThrowingNoSuchElementException": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "LateinitUsage": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "ignoreOnClassesPattern": { "type": "string" @@ -1486,124 +1066,64 @@ } }, "MapGetWithNotNullAssertionOperator": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "MissingPackageDeclaration": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "NullCheckOnMutableProperty": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "NullableToStringCall": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnconditionalJumpStatementInLoop": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnnecessaryNotNullCheck": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnnecessaryNotNullOperator": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnnecessarySafeCall": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnreachableCatchBlock": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnreachableCode": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnsafeCallOnNullableType": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnsafeCast": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnusedUnaryOperator": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UselessPostfixExpression": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "WrongEqualsTypeParameter": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" } } }, @@ -1614,28 +1134,16 @@ "type": "boolean" }, "AlsoCouldBeApply": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "CanBeNonNullable": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "CascadingCallWrapping": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "includeElvis": { "type": "boolean" @@ -1643,28 +1151,16 @@ } }, "ClassOrdering": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "CollapsibleIfStatements": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "DataClassContainsFunctions": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "conversionFunctionPrefix": { "type": "array", @@ -1675,20 +1171,12 @@ } }, "DataClassShouldBeImmutable": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "DestructuringDeclarationWithTooManyEntries": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "maxDestructuringEntries": { "type": "integer" @@ -1696,44 +1184,24 @@ } }, "EqualsNullCall": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "EqualsOnSignatureLine": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "ExplicitCollectionElementAccessMethod": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "ExplicitItLambdaParameter": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "ExpressionBodySyntax": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "includeLineWrapping": { "type": "boolean" @@ -1741,12 +1209,8 @@ } }, "ForbiddenComment": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "values": { "type": "array", @@ -1763,12 +1227,8 @@ } }, "ForbiddenImport": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "imports": { "type": "array", @@ -1791,12 +1251,8 @@ } }, "ForbiddenMethodCall": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "methods": { "type": "array", @@ -1816,12 +1272,8 @@ } }, "ForbiddenSuppress": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "rules": { "type": "array", @@ -1832,12 +1284,8 @@ } }, "ForbiddenVoid": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "ignoreOverridden": { "type": "boolean" @@ -1848,12 +1296,8 @@ } }, "FunctionOnlyReturningConstant": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "ignoreOverridableFunction": { "type": "boolean" @@ -1870,12 +1314,8 @@ } }, "LoopWithTooManyJumpStatements": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "maxJumpCount": { "type": "integer" @@ -1883,12 +1323,8 @@ } }, "MagicNumber": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "ignoreNumbers": { "type": "array", @@ -1929,28 +1365,16 @@ } }, "MandatoryBracesIfStatements": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "MandatoryBracesLoops": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "MaxChainedCallsOnSameLine": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "maxChainedCalls": { "type": "integer" @@ -1958,12 +1382,8 @@ } }, "MaxLineLength": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "maxLineLength": { "type": "integer" @@ -1983,36 +1403,20 @@ } }, "MayBeConst": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "ModifierOrder": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "MultilineLambdaItParameter": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "MultilineRawStringIndentation": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "indentSize": { "type": "integer" @@ -2020,116 +1424,60 @@ } }, "NestedClassesVisibility": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "NewLineAtEndOfFile": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "NoTabs": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "NullableBooleanCheck": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "ObjectLiteralToLambda": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "OptionalAbstractKeyword": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "OptionalUnit": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "OptionalWhenBraces": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "PreferToOverPairSyntax": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "ProtectedMemberInFinalClass": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "RedundantExplicitType": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "RedundantHigherOrderMapUsage": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "RedundantVisibilityModifierRule": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "ReturnCount": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "max": { "type": "integer" @@ -2152,36 +1500,20 @@ } }, "SafeCast": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "SerialVersionUIDInSerializableClass": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "SpacingBetweenPackageAndImports": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "ThrowsCount": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "max": { "type": "integer" @@ -2192,28 +1524,16 @@ } }, "TrailingWhitespace": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "TrimMultilineRawString": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnderscoresInNumericLiterals": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "acceptableLength": { "type": "integer" @@ -2224,76 +1544,40 @@ } }, "UnnecessaryAbstractClass": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnnecessaryAnnotationUseSiteTarget": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnnecessaryApply": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnnecessaryBackticks": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnnecessaryFilter": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnnecessaryInheritance": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnnecessaryInnerClass": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnnecessaryLet": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnnecessaryParentheses": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "allowForUnclearPrecedence": { "type": "boolean" @@ -2301,36 +1585,20 @@ } }, "UntilInsteadOfRangeTo": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnusedImports": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnusedPrivateClass": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UnusedPrivateMember": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "allowedNames": { "type": "string" @@ -2338,44 +1606,24 @@ } }, "UseAnyOrNoneInsteadOfFind": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UseArrayLiteralsInAnnotations": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UseCheckNotNull": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UseCheckOrError": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UseDataClass": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "allowVars": { "type": "boolean" @@ -2383,92 +1631,48 @@ } }, "UseEmptyCounterpart": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UseIfEmptyOrIfBlank": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UseIfInsteadOfWhen": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UseIsNullOrEmpty": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UseOrEmpty": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UseRequire": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UseRequireNotNull": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UseSumOfInsteadOfFlatMapSize": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UselessCallOnNotNull": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "UtilityClassWithPublicConstructor": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "VarCouldBeVal": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "ignoreLateinitVar": { "type": "boolean" @@ -2476,12 +1680,8 @@ } }, "WildcardImport": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "excludeImports": { "type": "array", @@ -2506,12 +1706,8 @@ "type": "boolean" }, "AnnotationOnSeparateLine": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2519,12 +1715,8 @@ } }, "AnnotationSpacing": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2532,12 +1724,8 @@ } }, "ArgumentListWrapping": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2551,12 +1739,8 @@ } }, "BlockCommentInitialStarAlignment": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2564,12 +1748,8 @@ } }, "ChainWrapping": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2577,12 +1757,8 @@ } }, "CommentSpacing": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2590,12 +1766,8 @@ } }, "CommentWrapping": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2606,12 +1778,8 @@ } }, "DiscouragedCommentLocation": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2619,12 +1787,8 @@ } }, "EnumEntryNameCase": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2632,20 +1796,12 @@ } }, "Filename": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "FinalNewline": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2656,12 +1812,8 @@ } }, "FunKeywordSpacing": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2669,12 +1821,8 @@ } }, "FunctionReturnTypeSpacing": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2682,12 +1830,8 @@ } }, "FunctionSignature": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2707,12 +1851,8 @@ } }, "FunctionStartOfBodySpacing": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2720,12 +1860,8 @@ } }, "FunctionTypeReferenceSpacing": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2733,12 +1869,8 @@ } }, "ImportOrdering": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2749,12 +1881,8 @@ } }, "Indentation": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2765,12 +1893,8 @@ } }, "KdocWrapping": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2781,12 +1905,8 @@ } }, "MaximumLineLength": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "maxLineLength": { "type": "integer" @@ -2797,12 +1917,8 @@ } }, "ModifierListSpacing": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2810,12 +1926,8 @@ } }, "ModifierOrdering": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2823,12 +1935,8 @@ } }, "MultiLineIfElse": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2836,12 +1944,8 @@ } }, "NoBlankLineBeforeRbrace": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2849,12 +1953,8 @@ } }, "NoBlankLinesInChainedMethodCalls": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2862,12 +1962,8 @@ } }, "NoConsecutiveBlankLines": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2875,12 +1971,8 @@ } }, "NoEmptyClassBody": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2888,12 +1980,8 @@ } }, "NoEmptyFirstLineInMethodBlock": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2901,12 +1989,8 @@ } }, "NoLineBreakAfterElse": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2914,12 +1998,8 @@ } }, "NoLineBreakBeforeAssignment": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2927,12 +2007,8 @@ } }, "NoMultipleSpaces": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2940,12 +2016,8 @@ } }, "NoSemicolons": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2953,12 +2025,8 @@ } }, "NoTrailingSpaces": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2966,12 +2034,8 @@ } }, "NoUnitReturn": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2979,12 +2043,8 @@ } }, "NoUnusedImports": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -2992,12 +2052,8 @@ } }, "NoWildcardImports": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "packagesToUseImportOnDemandProperty": { "type": "string" @@ -3005,12 +2061,8 @@ } }, "NullableTypeSpacing": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3018,12 +2070,8 @@ } }, "PackageName": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3031,12 +2079,8 @@ } }, "ParameterListSpacing": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3044,12 +2088,8 @@ } }, "ParameterListWrapping": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3060,12 +2100,8 @@ } }, "SpacingAroundAngleBrackets": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3073,12 +2109,8 @@ } }, "SpacingAroundColon": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3086,12 +2118,8 @@ } }, "SpacingAroundComma": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3099,12 +2127,8 @@ } }, "SpacingAroundCurly": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3112,12 +2136,8 @@ } }, "SpacingAroundDot": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3125,12 +2145,8 @@ } }, "SpacingAroundDoubleColon": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3138,12 +2154,8 @@ } }, "SpacingAroundKeyword": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3151,12 +2163,8 @@ } }, "SpacingAroundOperators": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3164,12 +2172,8 @@ } }, "SpacingAroundParens": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3177,12 +2181,8 @@ } }, "SpacingAroundRangeOperator": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3190,12 +2190,8 @@ } }, "SpacingAroundUnaryOperator": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3203,12 +2199,8 @@ } }, "SpacingBetweenDeclarationsWithAnnotations": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3216,12 +2208,8 @@ } }, "SpacingBetweenDeclarationsWithComments": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3229,12 +2217,8 @@ } }, "SpacingBetweenFunctionNameAndOpeningParenthesis": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3242,12 +2226,8 @@ } }, "StringTemplate": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3255,12 +2235,8 @@ } }, "TrailingCommaOnCallSite": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3271,12 +2247,8 @@ } }, "TrailingCommaOnDeclarationSite": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3287,12 +2259,8 @@ } }, "TypeArgumentListSpacing": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3300,12 +2268,8 @@ } }, "TypeParameterListSpacing": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3313,12 +2277,8 @@ } }, "UnnecessaryParenthesesBeforeTrailingLambda": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3326,12 +2286,8 @@ } }, "Wrapping": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "autoCorrect": { "type": "boolean" @@ -3350,12 +2306,8 @@ "type": "boolean" }, "ForbiddenPublicDataClass": { + "$ref": "#/$defs/ruleProperties", "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ], "properties": { "ignorePackages": { "type": "array", @@ -3366,20 +2318,12 @@ } }, "LibraryCodeMustSpecifyReturnType": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "LibraryEntitiesShouldNotBePublic": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" } } }, @@ -3390,20 +2334,12 @@ "type": "boolean" }, "UseEntityAtName": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" }, "ViolatesTypeResolutionRequirements": { - "type": "object", - "allOf": [ - { - "$ref": "#/$defs/ruleProperties" - } - ] + "$ref": "#/$defs/ruleProperties", + "type": "object" } } } diff --git a/src/schemas/json/docfx.json b/src/schemas/json/docfx.json index 302a1a5091e..7af49580d0f 100644 --- a/src/schemas/json/docfx.json +++ b/src/schemas/json/docfx.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/docfx.json", "definitions": { "buildConfig": { "type": "object", @@ -456,7 +457,6 @@ "description": "If set to true, DocFX would not fetch Git related information for articles." } }, - "id": "https://json.schemastore.org/docfx.json", "properties": { "metadata": { "$ref": "#/definitions/metadataConfig" diff --git a/src/schemas/json/dotnet-releases-index.json b/src/schemas/json/dotnet-releases-index.json index baa809f2fe0..418707a9e6e 100644 --- a/src/schemas/json/dotnet-releases-index.json +++ b/src/schemas/json/dotnet-releases-index.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/dotnet-releases-index.json", "$comment": "Schema derived from https://raw.githubusercontent.com/dotnet/core/main/release-notes/releases-index.json and https://github.com/dotnet/deployment-tools/blob/main/src/Microsoft.Deployment.DotNet.Releases/src/Product.cs", "additionalProperties": false, "definitions": { @@ -114,7 +115,6 @@ } }, "description": "A collection of manifests for .NET products, which is updated with each preview and stable release of the .NET SDK and/or Runtime", - "id": "https://json.schemastore.org/dotnet-releases-index.json", "properties": { "releases-index": { "type": "array", diff --git a/src/schemas/json/dss-2.0.0.json b/src/schemas/json/dss-2.0.0.json index 740bc1acff1..8460357ab0b 100644 --- a/src/schemas/json/dss-2.0.0.json +++ b/src/schemas/json/dss-2.0.0.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/dss-2.0.0.json", "definitions": { "dss2-SignRequestType": { "$xsd-full-type": "dss2:SignRequestType", @@ -1235,7 +1236,6 @@ "required": ["result"] } }, - "id": "https://json.schemastore.org/dss-2.0.0.json", "properties": { "signReq": { "$ref": "#/definitions/dss2-SignRequestType" diff --git a/src/schemas/json/embrace-config-schema-1.0.0.json b/src/schemas/json/embrace-config-schema-1.0.0.json index 740c409724e..396906d6d2c 100644 --- a/src/schemas/json/embrace-config-schema-1.0.0.json +++ b/src/schemas/json/embrace-config-schema-1.0.0.json @@ -1,7 +1,7 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/embrace-config-schema-1.0.0.json", "description": "JSON Schema definition for the Embrace configuration file.", - "id": "https://json.schemastore.org/embrace-config-schema-1.0.0.json", "properties": { "app_id": { "description": "Your 5 character app ID.", diff --git a/src/schemas/json/epr-manifest.json b/src/schemas/json/epr-manifest.json index 48edb41eac5..98db0cbb72b 100644 --- a/src/schemas/json/epr-manifest.json +++ b/src/schemas/json/epr-manifest.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/epr-manifest.json", "additionalProperties": true, "definitions": { "behavior": { @@ -38,7 +39,6 @@ } } }, - "id": "https://json.schemastore.org/epr-manifest.json", "properties": { "site": { "description": "A fully qualified URL of your website.", diff --git a/src/schemas/json/esquio.json b/src/schemas/json/esquio.json index 7bade073b87..2838623ae98 100644 --- a/src/schemas/json/esquio.json +++ b/src/schemas/json/esquio.json @@ -1,63 +1,133 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/esquio.json", "definitions": { "Esquio": { - "type": ["object", "null"], - "properties": { - "Products": { - "type": ["array", "null"], - "items": { - "$ref": "#/definitions/Product" - } + "anyOf": [ + { + "type": "object", + "properties": { + "Products": { + "anyOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Product" + } + }, + { + "type": "null" + } + ] + } + }, + "required": ["Products"] + }, + { + "type": "null" } - }, - "required": ["Products"] + ] }, "Feature": { - "type": ["object", "null"], - "properties": { - "Name": { - "type": ["string", "null"] + "anyOf": [ + { + "type": "object", + "properties": { + "Name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "Enabled": { + "type": "boolean" + }, + "Toggles": { + "anyOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Toggle" + } + }, + { + "type": "null" + } + ] + } + }, + "required": ["Name", "Enabled", "Toggles"] }, - "Enabled": { - "type": "boolean" - }, - "Toggles": { - "type": ["array", "null"], - "items": { - "$ref": "#/definitions/Toggle" - } + { + "type": "null" } - }, - "required": ["Name", "Enabled", "Toggles"] + ] }, "Product": { - "type": ["object", "null"], - "properties": { - "Name": { - "type": ["string", "null"] + "anyOf": [ + { + "type": "object", + "properties": { + "Name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "Features": { + "anyOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Feature" + } + }, + { + "type": "null" + } + ] + } + }, + "required": ["Name", "Features"] }, - "Features": { - "type": ["array", "null"], - "items": { - "$ref": "#/definitions/Feature" - } + { + "type": "null" } - }, - "required": ["Name", "Features"] + ] }, "Toggle": { - "type": ["object", "null"], - "properties": { - "Type": { - "type": ["string", "null"] + "anyOf": [ + { + "type": "object", + "required": ["Type", "Parameters"], + "properties": { + "Type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "Parameters": {} + } }, - "Parameters": {} - }, - "required": ["Type", "Parameters"] + { + "type": "null" + } + ] } }, - "id": "https://json.schemastore.org/esquio.json", "properties": { "Esquio": { "$ref": "#/definitions/Esquio" diff --git a/src/schemas/json/global.json b/src/schemas/json/global.json index 5fa5eaecbbe..aee8eecd8a8 100644 --- a/src/schemas/json/global.json +++ b/src/schemas/json/global.json @@ -1,7 +1,7 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/global.json", "additionalProperties": true, - "id": "https://json.schemastore.org/global.json", "properties": { "sdk": { "type": "object", diff --git a/src/schemas/json/grpc-api-gateway.json b/src/schemas/json/grpc-api-gateway.json index 4a167b4ad44..95bd5d92652 100644 --- a/src/schemas/json/grpc-api-gateway.json +++ b/src/schemas/json/grpc-api-gateway.json @@ -1,7 +1,7 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/grpc-api-gateway.json", "description": "Configuration files for gRPC API Gateway & OpenAPI generation plugin for protobuf (https://github.com/meshapi/grpc-api-gateway)", - "id": "https://json.schemastore.org/grpc-api-gateway.json", "properties": { "gateway": { "$ref": "#/definitions/meshapi.gateway.GatewaySpec" diff --git a/src/schemas/json/linkinator-config.json b/src/schemas/json/linkinator-config.json index 823f14fc81a..ea9ede71d4b 100644 --- a/src/schemas/json/linkinator-config.json +++ b/src/schemas/json/linkinator-config.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://json.schemastore.org/linkinator-config.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/linkinator-config.json", "properties": { "concurrency": { "description": "The number of connections to make simultaneously.", diff --git a/src/schemas/json/linutil-tab-data.json b/src/schemas/json/linutil-tab-data.json index 736ededa932..9de5dd375ef 100644 --- a/src/schemas/json/linutil-tab-data.json +++ b/src/schemas/json/linutil-tab-data.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://json.schemastore.org/linutil-tab-data.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/linutil-tab-data.json", "definitions": { "string-property": { "type": "string", diff --git a/src/schemas/json/linutil-tabs.json b/src/schemas/json/linutil-tabs.json index f45fccb5188..e8c792aa9ac 100644 --- a/src/schemas/json/linutil-tabs.json +++ b/src/schemas/json/linutil-tabs.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://json.schemastore.org/linutil-tabs.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/linutil-tabs.json", "title": "tab data", "description": "Tab data", "type": "object", @@ -13,11 +13,12 @@ "minItems": 1, "uniqueItems": true, "items": { + "$comment": "Must contain at least one non-whitespace character", "title": "directory entry", "description": "The directory entry of a tab", "type": "string", "minLength": 1, - "pattern": "[^ ]" + "pattern": "\\S" } } }, diff --git a/src/schemas/json/mkdocs-1.0.json b/src/schemas/json/mkdocs-1.0.json index bff233a8bd8..fc1b7273f14 100644 --- a/src/schemas/json/mkdocs-1.0.json +++ b/src/schemas/json/mkdocs-1.0.json @@ -1,13 +1,8 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "allOf": [ - { - "$ref": "#/definitions/coreProperties" - }, - { - "required": ["site_name"] - } - ], + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/mkdocs-1.0.json", + "$ref": "#/definitions/coreProperties", + "required": ["site_name"], "definitions": { "coreProperties": { "type": "object", @@ -81,7 +76,14 @@ "name": { "default": "mkdocs", "description": "The string name of a known installed theme, or null if using a local custom theme.", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "locale": { "default": "en", @@ -201,7 +203,6 @@ } }, "description": "JSON schema for MkDocs configuration file", - "id": "https://json.schemastore.org/mkdocs-1.0.json", "title": "MkDocs Configuration", "type": "object" } diff --git a/src/schemas/json/mkdocs-1.6.json b/src/schemas/json/mkdocs-1.6.json index 9fe3fff9430..dc72ed9b57b 100644 --- a/src/schemas/json/mkdocs-1.6.json +++ b/src/schemas/json/mkdocs-1.6.json @@ -155,7 +155,14 @@ "name": { "default": "mkdocs", "description": "The string name of a known installed theme, or null if using a local custom theme.", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "locale": { "default": "en", diff --git a/src/schemas/json/nuget-project-3.3.0.json b/src/schemas/json/nuget-project-3.3.0.json index 82a2d6cf779..6a06d807170 100644 --- a/src/schemas/json/nuget-project-3.3.0.json +++ b/src/schemas/json/nuget-project-3.3.0.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/nuget-project-3.3.0.json", "definitions": { "configType": { "type": "object", @@ -16,21 +17,27 @@ "description": "A list of dependencies.", "type": "object", "additionalProperties": { - "type": ["string", "object"], - "properties": { - "version": { + "anyOf": [ + { "type": "string" }, - "type": { - "type": "string", - "default": "default", - "enum": ["default", "build"] + { + "type": "object", + "properties": { + "version": { + "type": "string" + }, + "type": { + "type": "string", + "default": "default", + "enum": ["default", "build"] + } + } } - } + ] } } }, - "id": "https://json.schemastore.org/nuget-project-3.3.0.json", "properties": { "dependencies": { "$ref": "#/definitions/dependencies" diff --git a/src/schemas/json/nuget-project.json b/src/schemas/json/nuget-project.json index 2454c08f9c0..bdd475e5f06 100644 --- a/src/schemas/json/nuget-project.json +++ b/src/schemas/json/nuget-project.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/nuget-project.json", "definitions": { "configType": { "type": "object", @@ -16,21 +17,27 @@ "description": "A list of dependencies.", "type": "object", "additionalProperties": { - "type": ["string", "object"], - "properties": { - "version": { + "anyOf": [ + { "type": "string" }, - "type": { - "type": "string", - "default": "default", - "enum": ["default", "build"] + { + "type": "object", + "properties": { + "version": { + "type": "string" + }, + "type": { + "type": "string", + "default": "default", + "enum": ["default", "build"] + } + } } - } + ] } } }, - "id": "https://json.schemastore.org/nuget-project.json", "properties": { "dependencies": { "$ref": "#/definitions/dependencies" diff --git a/src/schemas/json/nycrc.json b/src/schemas/json/nycrc.json index 24a900fa5f9..af34b9c695d 100644 --- a/src/schemas/json/nycrc.json +++ b/src/schemas/json/nycrc.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://json.schemastore.org/nycrc.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/nycrc.json", "properties": { "extends": { "description": "Name of configuration to extend from.", diff --git a/src/schemas/json/omnisharp.json b/src/schemas/json/omnisharp.json index b6cb3d640bc..a51242a82d7 100644 --- a/src/schemas/json/omnisharp.json +++ b/src/schemas/json/omnisharp.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://json.schemastore.org/omnisharp.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/omnisharp.json", "properties": { "FormattingOptions": { "type": "object", diff --git a/src/schemas/json/pantsbuild-2.14.0.json b/src/schemas/json/pantsbuild-2.14.0.json index 24cd5cf2848..139d5917334 100644 --- a/src/schemas/json/pantsbuild-2.14.0.json +++ b/src/schemas/json/pantsbuild-2.14.0.json @@ -1,8 +1,8 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/pantsbuild-2.14.0.json", "additionalProperties": true, "description": "Pants configuration file schema: https://www.pantsbuild.org/", - "id": "https://json.schemastore.org/pantsbuild-2.14.0.json", "properties": { "GLOBAL": { "description": "Options to control the overall behavior of Pants.", diff --git a/src/schemas/json/pantsbuild-2.15.0.json b/src/schemas/json/pantsbuild-2.15.0.json index d91feee980a..a27ec200dff 100644 --- a/src/schemas/json/pantsbuild-2.15.0.json +++ b/src/schemas/json/pantsbuild-2.15.0.json @@ -1,8 +1,8 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/pantsbuild-2.15.0.json", "additionalProperties": true, "description": "Pants configuration file schema: https://www.pantsbuild.org/", - "id": "https://json.schemastore.org/pantsbuild-2.15.0.json", "properties": { "GLOBAL": { "description": "Options to control the overall behavior of Pants.", diff --git a/src/schemas/json/pantsbuild-2.16.0.json b/src/schemas/json/pantsbuild-2.16.0.json index e2a7bf3e0cd..27b894a9468 100644 --- a/src/schemas/json/pantsbuild-2.16.0.json +++ b/src/schemas/json/pantsbuild-2.16.0.json @@ -1,8 +1,8 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/pantsbuild-2.16.0.json", "additionalProperties": true, "description": "Pants configuration file schema: https://www.pantsbuild.org/", - "id": "https://json.schemastore.org/pantsbuild-2.16.0.json", "properties": { "GLOBAL": { "description": "Options to control the overall behavior of Pants.", diff --git a/src/schemas/json/pantsbuild-2.17.0.json b/src/schemas/json/pantsbuild-2.17.0.json index 5d30c297f8a..3e57a01f55c 100644 --- a/src/schemas/json/pantsbuild-2.17.0.json +++ b/src/schemas/json/pantsbuild-2.17.0.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://json.schemastore.org/pantsbuild-2.17.0.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/pantsbuild-2.17.0.json", "additionalProperties": true, "description": "Pants configuration file schema: https://www.pantsbuild.org/", "properties": { diff --git a/src/schemas/json/pantsbuild-2.19.0.json b/src/schemas/json/pantsbuild-2.19.0.json index 1999fa20412..fb6729f1580 100644 --- a/src/schemas/json/pantsbuild-2.19.0.json +++ b/src/schemas/json/pantsbuild-2.19.0.json @@ -1,8 +1,8 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/pantsbuild-2.19.0.json", "additionalProperties": true, "description": "Pants configuration file schema: https://www.pantsbuild.org/", - "id": "https://json.schemastore.org/pantsbuild-2.19.0.json", "properties": { "GLOBAL": { "description": "Options to control the overall behavior of Pants.", diff --git a/src/schemas/json/pantsbuild-2.20.0.json b/src/schemas/json/pantsbuild-2.20.0.json index 7bd41929754..4aba13d79b6 100644 --- a/src/schemas/json/pantsbuild-2.20.0.json +++ b/src/schemas/json/pantsbuild-2.20.0.json @@ -1,8 +1,8 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/pantsbuild-2.20.0.json", "additionalProperties": true, "description": "Pants configuration file schema: https://www.pantsbuild.org/", - "id": "https://json.schemastore.org/pantsbuild-2.20.0.json", "properties": { "GLOBAL": { "description": "Options to control the overall behavior of Pants.", diff --git a/src/schemas/json/pantsbuild-2.21.0.json b/src/schemas/json/pantsbuild-2.21.0.json index efb50c1763f..4998188e308 100644 --- a/src/schemas/json/pantsbuild-2.21.0.json +++ b/src/schemas/json/pantsbuild-2.21.0.json @@ -1,8 +1,8 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/pantsbuild-2.21.0.json", "additionalProperties": true, "description": "Pants configuration file schema: https://www.pantsbuild.org/", - "id": "https://json.schemastore.org/pantsbuild-2.21.0.json", "properties": { "GLOBAL": { "description": "Options to control the overall behavior of Pants.", diff --git a/src/schemas/json/pantsbuild-2.24.0.json b/src/schemas/json/pantsbuild-2.24.0.json index de2e0dd2c54..1cc654e0818 100644 --- a/src/schemas/json/pantsbuild-2.24.0.json +++ b/src/schemas/json/pantsbuild-2.24.0.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://json.schemastore.org/pantsbuild-2.24.0.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/pantsbuild-2.24.0.json", "additionalProperties": true, "description": "Pants configuration file schema: https://www.pantsbuild.org/", "properties": { diff --git a/src/schemas/json/pantsbuild-2.26.0.json b/src/schemas/json/pantsbuild-2.26.0.json index e5f301c68a2..63a09a014d2 100644 --- a/src/schemas/json/pantsbuild-2.26.0.json +++ b/src/schemas/json/pantsbuild-2.26.0.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://json.schemastore.org/pantsbuild-2.26.0.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/pantsbuild-2.26.0.json", "additionalProperties": true, "description": "Pants configuration file schema: https://www.pantsbuild.org/", "properties": { diff --git a/src/schemas/json/pantsbuild-2.30.0.json b/src/schemas/json/pantsbuild-2.30.0.json index 28ff60d5a98..7c3a8b5e3cb 100644 --- a/src/schemas/json/pantsbuild-2.30.0.json +++ b/src/schemas/json/pantsbuild-2.30.0.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://json.schemastore.org/pantsbuild-2.30.0.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/pantsbuild-2.30.0.json", "additionalProperties": true, "description": "Pants configuration file schema: https://www.pantsbuild.org/", "properties": { diff --git a/src/schemas/json/pantsbuild-2.31.0.json b/src/schemas/json/pantsbuild-2.31.0.json index e6e83f3f8eb..9c928efcfab 100644 --- a/src/schemas/json/pantsbuild-2.31.0.json +++ b/src/schemas/json/pantsbuild-2.31.0.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://json.schemastore.org/pantsbuild-2.31.0.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/pantsbuild-2.31.0.json", "additionalProperties": true, "description": "Pants configuration file schema: https://www.pantsbuild.org/", "properties": { diff --git a/src/schemas/json/pantsbuild-2.32.0.json b/src/schemas/json/pantsbuild-2.32.0.json index 2d04c21e709..baf711dc497 100644 --- a/src/schemas/json/pantsbuild-2.32.0.json +++ b/src/schemas/json/pantsbuild-2.32.0.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://json.schemastore.org/pantsbuild-2.32.0.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/pantsbuild-2.32.0.json", "additionalProperties": true, "description": "Pants configuration file schema: https://www.pantsbuild.org/", "properties": { diff --git a/src/schemas/json/pm2-ecosystem.json b/src/schemas/json/pm2-ecosystem.json index 6f56b980d20..93a241aebfc 100644 --- a/src/schemas/json/pm2-ecosystem.json +++ b/src/schemas/json/pm2-ecosystem.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/pm2-ecosystem.json", "definitions": { "app": { "type": "object", @@ -78,7 +79,7 @@ "log_type": { "type": "string", "description": "Define a specific log output type", - "enum": ["json"] + "const": "json" }, "log_date_format": { "type": "string", @@ -337,7 +338,6 @@ } } }, - "id": "https://json.schemastore.org/pm2-ecosystem.json", "properties": { "apps": { "type": "array", diff --git a/src/schemas/json/postcssrc.json b/src/schemas/json/postcssrc.json index 140154eb1ba..25bfcc76bd6 100644 --- a/src/schemas/json/postcssrc.json +++ b/src/schemas/json/postcssrc.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/postcssrc.json", "additionalProperties": false, "definitions": { "ConfigPlugin": { @@ -8,12 +9,12 @@ "type": "object" }, { - "enum": [false] + "type": "boolean", + "const": false } ] } }, - "id": "https://json.schemastore.org/postcssrc.json", "properties": { "parser": { "description": "A special syntax parser (for example, SCSS).", @@ -22,7 +23,8 @@ "type": "string" }, { - "enum": [false] + "type": "boolean", + "const": false } ] }, @@ -33,7 +35,8 @@ "type": "string" }, { - "enum": [false] + "type": "boolean", + "const": false } ] }, @@ -44,7 +47,8 @@ "type": "string" }, { - "enum": [false] + "type": "boolean", + "const": false } ] }, diff --git a/src/schemas/json/pterodactyl.json b/src/schemas/json/pterodactyl.json index bc4a8d3a95c..9c292ea43d7 100644 --- a/src/schemas/json/pterodactyl.json +++ b/src/schemas/json/pterodactyl.json @@ -1,7 +1,7 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/pterodactyl.json", "additionalProperties": false, - "id": "https://json.schemastore.org/pterodactyl.json", "properties": { "_comment": { "type": "string", diff --git a/src/schemas/json/qfconfig.json b/src/schemas/json/qfconfig.json index 94b5425509a..1f135d2d2f6 100644 --- a/src/schemas/json/qfconfig.json +++ b/src/schemas/json/qfconfig.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/qfconfig.json", "additionalProperties": false, "definitions": { "generator": { @@ -21,7 +22,6 @@ } }, "description": "A configuration file for Queryfirst (https://queryfirst.net), named qfconfig.json", - "id": "https://json.schemastore.org/qfconfig.json", "properties": { "defaultConnection": { "type": "string" diff --git a/src/schemas/json/rumdl.json b/src/schemas/json/rumdl.json index be317d70dff..261362de139 100644 --- a/src/schemas/json/rumdl.json +++ b/src/schemas/json/rumdl.json @@ -183,7 +183,7 @@ "minimum": 0 }, "MarkdownFlavor": { - "description": "Markdown flavor/dialect. Accepts: standard, gfm, mkdocs, mdx, pandoc, quarto, obsidian, kramdown, azure_devops, myst, hugo. Aliases: commonmark/github map to standard, qmd/rmd/rmarkdown map to quarto, jekyll maps to kramdown, azure/ado map to azure_devops, mystmd maps to myst, goldmark maps to hugo.", + "description": "Markdown flavor/dialect. Accepts: standard, gfm, mkdocs, mdx, pandoc, quarto, obsidian, kramdown, azure_devops, myst, hugo, mdg. Aliases: commonmark/github map to standard, qmd/rmd/rmarkdown map to quarto, jekyll maps to kramdown, azure/ado map to azure_devops, mystmd maps to myst, goldmark maps to hugo, markdown_with_gherkin maps to mdg.", "type": "string", "enum": [ "standard", @@ -206,7 +206,9 @@ "myst", "mystmd", "hugo", - "goldmark" + "goldmark", + "mdg", + "markdown_with_gherkin" ] }, "CodeBlockToolsConfig": { diff --git a/src/schemas/json/rust-project.json b/src/schemas/json/rust-project.json index 8e80048f29b..c8092ff16e2 100644 --- a/src/schemas/json/rust-project.json +++ b/src/schemas/json/rust-project.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/rust-project.json", "definitions": { "crate": { "type": "object", @@ -125,7 +126,6 @@ "required": ["crate", "name"] } }, - "id": "https://json.schemastore.org/rust-project.json", "properties": { "sysroot": { "description": "Path to sysroot.", diff --git a/src/schemas/json/safebox-schema-v1.0.0.json b/src/schemas/json/safebox-schema-v1.0.0.json index 6d56bbb0e92..7d13fa7f528 100644 --- a/src/schemas/json/safebox-schema-v1.0.0.json +++ b/src/schemas/json/safebox-schema-v1.0.0.json @@ -1,8 +1,8 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/safebox-schema-v1.0.0.json", "additionalProperties": false, "description": "Configuration for safebox to deploy parameters to various parameter stores", - "id": "https://json.schemastore.org/safebox-schema-v1.0.0.json", "properties": { "service": { "type": "string", diff --git a/src/schemas/json/slack-app-manifest.json b/src/schemas/json/slack-app-manifest.json index 11e5587f74e..e18d0c57a78 100644 --- a/src/schemas/json/slack-app-manifest.json +++ b/src/schemas/json/slack-app-manifest.json @@ -1,8 +1,8 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/slack-app-manifest.json", "additionalProperties": false, "description": "A manifest file for a Slack app, as described on this page: https://api.slack.com/reference/manifests", - "id": "https://json.schemastore.org/slack-app-manifest.json", "properties": { "_metadata": { "description": "Settings that describe the manifest.\nhttps://api.slack.com/reference/manifests#metadata", diff --git a/src/schemas/json/solution-filter.json b/src/schemas/json/solution-filter.json index 6a80209471c..67464aca7d4 100644 --- a/src/schemas/json/solution-filter.json +++ b/src/schemas/json/solution-filter.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://json.schemastore.org/solution-filter.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/solution-filter.json", "properties": { "solution": { "type": "object", diff --git a/src/schemas/json/sourcehut-build-0.41.2.json b/src/schemas/json/sourcehut-build-0.41.2.json index 2409bddf777..7cfd2ca8eee 100644 --- a/src/schemas/json/sourcehut-build-0.41.2.json +++ b/src/schemas/json/sourcehut-build-0.41.2.json @@ -1,7 +1,7 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/sourcehut-build-0.41.2.json", "description": "A recipe for Sourcehut CI service", - "id": "https://json.schemastore.org/sourcehut-build-0.41.2.json", "properties": { "image": { "description": "Which OS image to build in", diff --git a/src/schemas/json/sourcemap-v3.json b/src/schemas/json/sourcemap-v3.json index 72dde5d253e..a4b2a8509d5 100644 --- a/src/schemas/json/sourcemap-v3.json +++ b/src/schemas/json/sourcemap-v3.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/sourcemap-v3.json", "definitions": { "sectionMap": { "anyOf": [ @@ -22,7 +23,6 @@ ] } }, - "id": "https://json.schemastore.org/sourcemap-v3.json", "patternProperties": { "^x_": { "type": "object", @@ -55,7 +55,14 @@ "type": "array", "description": "An optional list of source content, useful when the 'source' can�t be hosted. The contents are listed in the same order as the sources in line 5. 'null' may be used if some original sources should be retrieved by name.", "items": { - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "names": { diff --git a/src/schemas/json/sourcery_yaml_schema.json b/src/schemas/json/sourcery_yaml_schema.json index d4e79fc6667..9c0b28387d4 100644 --- a/src/schemas/json/sourcery_yaml_schema.json +++ b/src/schemas/json/sourcery_yaml_schema.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/sourcery_yaml_schema.json", "additionalProperties": false, "definitions": { "RuleType": { @@ -139,12 +140,8 @@ "type": "string" }, "language": { - "default": "python", - "allOf": [ - { - "$ref": "#/definitions/RuleLanguage" - } - ] + "$ref": "#/definitions/RuleLanguage", + "default": "python" }, "replacement": { "title": "Replacement", @@ -305,7 +302,6 @@ "additionalProperties": false } }, - "id": "https://json.schemastore.org/sourcery_yaml_schema.json", "properties": { "version": { "title": "Version", @@ -323,6 +319,7 @@ } }, "rule_settings": { + "$ref": "#/definitions/RuleSettingsConfig", "title": "Rule Settings", "default": { "enable": ["default"], @@ -332,12 +329,7 @@ "rule_types": ["refactoring", "suggestion", "comment"], "python_version": null, "allow_adding_imports": false - }, - "allOf": [ - { - "$ref": "#/definitions/RuleSettingsConfig" - } - ] + } }, "rules": { "title": "Rules", @@ -361,55 +353,39 @@ } }, "metrics": { + "$ref": "#/definitions/MetricsConfig", "title": "Metrics", "default": { "quality_threshold": 25 - }, - "allOf": [ - { - "$ref": "#/definitions/MetricsConfig" - } - ] + } }, "github": { + "$ref": "#/definitions/GitHubConfig", "title": "Github", "default": { "labels": [], "ignore_labels": ["sourcery-ignore"], "review_or_request_review": "author", "sourcery_branch": "sourcery-dev/{base_branch}" - }, - "allOf": [ - { - "$ref": "#/definitions/GitHubConfig" - } - ] + } }, "clone_detection": { + "$ref": "#/definitions/CloneDetectionConfig", "title": "Clone Detection", "default": { "min_lines": 3, "min_duplicates": 2, "identical_clones_only": false - }, - "allOf": [ - { - "$ref": "#/definitions/CloneDetectionConfig" - } - ] + } }, "proxy": { + "$ref": "#/definitions/ProxyConfig", "title": "Proxy", "default": { "url": null, "ssl_certs_file": null, "no_ssl_verify": false - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyConfig" - } - ] + } } }, "title": "Sourcery YAML Schema", diff --git a/src/schemas/json/specif-1.0.json b/src/schemas/json/specif-1.0.json index a2de3179d98..919d4d48d24 100644 --- a/src/schemas/json/specif-1.0.json +++ b/src/schemas/json/specif-1.0.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "http://specif.de/v1.0/schema#", "definitions": { "id": { "description": "A globally unique identifier.", @@ -205,7 +206,6 @@ } }, "description": "The Specification Integration Facility (SpecIF) integrates partial system models from different methods and tools in a semantic net. Collaborators shall browse, search and audit engineering results in a common context. Also, the exchange of model information between organizations and tools is facilitated. SpecIF represents the visible, i.e. the diagrams and the text, as well as the semantics of system specifications.", - "id": "http://specif.de/v1.0/schema#", "properties": { "$schema": { "type": "string", @@ -337,7 +337,7 @@ "type": "string", "title": "Data-type 'Integer'", "description": "The corresponding definition in https://www.w3.org/TR/xmlschema-2/ applies.", - "enum": ["xs:integer"] + "const": "xs:integer" }, "id": { "$ref": "#/definitions/id" @@ -381,7 +381,7 @@ "type": "string", "title": "Data-type 'Double'", "description": "The corresponding definition in https://www.w3.org/TR/xmlschema-2/ applies.", - "enum": ["xs:double"] + "const": "xs:double" }, "id": { "$ref": "#/definitions/id" @@ -471,7 +471,7 @@ "type": "string", "title": "Data-type 'Enumeration'", "description": "The corresponding definition in https://www.w3.org/TR/xmlschema-2/ applies.", - "enum": ["xs:enumeration"] + "const": "xs:enumeration" }, "id": { "$ref": "#/definitions/id" diff --git a/src/schemas/json/specif-1.1.json b/src/schemas/json/specif-1.1.json index 08054ee4098..ffd8a586294 100644 --- a/src/schemas/json/specif-1.1.json +++ b/src/schemas/json/specif-1.1.json @@ -215,7 +215,7 @@ "description": "The corresponding definition in https://www.w3.org/TR/xmlschema-2/ applies.", "type": "string", "title": "Data-type 'Boolean'", - "enum": ["xs:boolean"] + "const": "xs:boolean" }, "id": { "$ref": "#/definitions/SpecifId" @@ -291,7 +291,7 @@ "description": "The corresponding definition in https://www.w3.org/TR/xmlschema-2/ applies.", "type": "string", "title": "Data-type 'Integer'", - "enum": ["xs:integer"] + "const": "xs:integer" }, "id": { "$ref": "#/definitions/SpecifId" @@ -343,7 +343,7 @@ "description": "The corresponding definition in https://www.w3.org/TR/xmlschema-2/ applies.", "type": "string", "title": "Data-type 'Double'", - "enum": ["xs:double"] + "const": "xs:double" }, "id": { "$ref": "#/definitions/SpecifId" @@ -401,7 +401,7 @@ "description": "The corresponding definition in https://www.w3.org/TR/xmlschema-2/ applies.", "type": "string", "title": "Data-type 'String' with plain or formatted text. The property's text object MAY specify the format and language.", - "enum": ["xs:string"] + "const": "xs:string" }, "id": { "$ref": "#/definitions/SpecifId" diff --git a/src/schemas/json/stylua.json b/src/schemas/json/stylua.json index 116312c0edb..ae9656b81f3 100644 --- a/src/schemas/json/stylua.json +++ b/src/schemas/json/stylua.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://json.schemastore.org/stylua.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/stylua.json", "title": "Stylua Config", "description": "Configuration files for the Stylua formatter", "type": "object", diff --git a/src/schemas/json/tizen_workspace.json b/src/schemas/json/tizen_workspace.json index 21c0af837c3..0030c6b3a75 100644 --- a/src/schemas/json/tizen_workspace.json +++ b/src/schemas/json/tizen_workspace.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://json.schemastore.org/tizen_workspace.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/tizen_workspace.json", "properties": { "auto_gen_build_files": { "type": "boolean" diff --git a/src/schemas/json/tmuxinator.json b/src/schemas/json/tmuxinator.json index f2763f7dc9d..8a872ba4dc8 100644 --- a/src/schemas/json/tmuxinator.json +++ b/src/schemas/json/tmuxinator.json @@ -1,7 +1,7 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/tmuxinator.json", "additionalProperties": false, - "id": "https://json.schemastore.org/tmuxinator.json", "properties": { "defaults": { "type": "object" diff --git a/src/schemas/json/tsd.json b/src/schemas/json/tsd.json index 55972102cb8..62a325f5ebb 100644 --- a/src/schemas/json/tsd.json +++ b/src/schemas/json/tsd.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://json.schemastore.org/tsd.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/tsd.json", "properties": { "bundle": { "description": "Path to a '.d.ts' bundle file (see below). Change this if you want the bundle to be closer to the actual source files. TSD will create the appropriate relative paths.", diff --git a/src/schemas/json/tsdrc.json b/src/schemas/json/tsdrc.json index b9aef5a573b..4bef3277431 100644 --- a/src/schemas/json/tsdrc.json +++ b/src/schemas/json/tsdrc.json @@ -1,7 +1,7 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/tsdrc.json", "additionalProperties": true, - "id": "https://json.schemastore.org/tsdrc.json", "properties": { "strictSSL": { "type": "boolean", diff --git a/src/schemas/json/typings.json b/src/schemas/json/typings.json index fcb7f6b9d6a..2a15fa559ab 100644 --- a/src/schemas/json/typings.json +++ b/src/schemas/json/typings.json @@ -1,15 +1,22 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/typings.json", "additionalProperties": true, - "id": "https://json.schemastore.org/typings.json", "properties": { "main": { "description": "The entry point to the definition (canonical to `\"main\"` in NPM's `package.json`).", "type": "string" }, "browser": { - "description": "A string, or map of paths, to override during resolution. See spec: https://github.com/defunctzombie/package-browser-field-spec", - "type": ["object", "string"] + "anyOf": [ + { + "type": "object" + }, + { + "type": "string" + } + ], + "description": "A string, or map of paths, to override during resolution. See spec: https://github.com/defunctzombie/package-browser-field-spec" }, "version": { "description": "The semver range this definition is typed for", @@ -20,8 +27,15 @@ "type": "string" }, "resolution": { - "description": "Map of resolutions to install", - "type": ["object", "string"] + "anyOf": [ + { + "type": "object" + }, + { + "type": "string" + } + ], + "description": "Map of resolutions to install" }, "files": { "description": "Used as an alternative or to complement `main`, specify an array of files that are exported but aren't already part of the resolution from `main`.", diff --git a/src/schemas/json/typingsrc.json b/src/schemas/json/typingsrc.json index 3512523a773..3344f0ff6a8 100644 --- a/src/schemas/json/typingsrc.json +++ b/src/schemas/json/typingsrc.json @@ -1,14 +1,21 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/typingsrc.json", "additionalProperties": true, - "id": "https://json.schemastore.org/typingsrc.json", "properties": { "ca": { - "type": ["array", "string"], - "description": "A string or array of strings of trusted certificates in PEM format", - "items": { - "type": "string" - } + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "description": "A string or array of strings of trusted certificates in PEM format" }, "cert": { "type": "string", diff --git a/src/schemas/json/uproject.json b/src/schemas/json/uproject.json index d6f18091eb6..877ac3b5dd1 100644 --- a/src/schemas/json/uproject.json +++ b/src/schemas/json/uproject.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/uproject.json", "additionalProperties": false, "definitions": { "BuildConfiguration": { @@ -230,7 +231,6 @@ } }, "description": "Descriptor for projects. Contains all the information contained within a .uproject file.", - "id": "https://json.schemastore.org/uproject.json", "markdownDescription": "Descriptor for projects. Contains all the information contained within a `.uproject` file.", "properties": { "AdditionalPluginDirectories": { diff --git a/src/schemas/json/vsconfig.json b/src/schemas/json/vsconfig.json index 08592fc6cea..eb7722091be 100644 --- a/src/schemas/json/vsconfig.json +++ b/src/schemas/json/vsconfig.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://json.schemastore.org/vsconfig.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/vsconfig.json", "properties": { "version": { "description": "The version of the component configuration file format.", diff --git a/src/schemas/json/vsls.json b/src/schemas/json/vsls.json index a850b7cddc0..5f32d2904d6 100644 --- a/src/schemas/json/vsls.json +++ b/src/schemas/json/vsls.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://json.schemastore.org/vsls.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/vsls.json", "properties": { "excludeFiles": { "description": "An array of globs which indicate the files that should be completely unavailable to guests when you share (e.g. secrets).", diff --git a/src/schemas/json/web-manifest-app-info.json b/src/schemas/json/web-manifest-app-info.json index e23eb8bbebf..bc7a4128003 100644 --- a/src/schemas/json/web-manifest-app-info.json +++ b/src/schemas/json/web-manifest-app-info.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://json.schemastore.org/web-manifest-app-info.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/web-manifest-app-info.json", "properties": { "categories": { "description": "Describes the expected application categories to which the web application belongs.", diff --git a/src/schemas/json/web-manifest-combined.json b/src/schemas/json/web-manifest-combined.json index 3243289346f..359072a8c9e 100644 --- a/src/schemas/json/web-manifest-combined.json +++ b/src/schemas/json/web-manifest-combined.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/web-manifest-combined.json", "allOf": [ { "$ref": "web-manifest.json" @@ -11,6 +12,5 @@ "$ref": "web-manifest-share-target.json" } ], - "id": "https://json.schemastore.org/web-manifest-combined.json", "title": "JSON schema for Web Application manifest files" } diff --git a/src/schemas/json/web-manifest-share-target.json b/src/schemas/json/web-manifest-share-target.json index 45835ee63c2..decfd5f9adf 100644 --- a/src/schemas/json/web-manifest-share-target.json +++ b/src/schemas/json/web-manifest-share-target.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/web-manifest-share-target.json", "definitions": { "share_target": { "type": "object", @@ -93,7 +94,6 @@ "required": ["name", "accept"] } }, - "id": "https://json.schemastore.org/web-manifest-share-target.json", "properties": { "share_target": { "$ref": "#/definitions/share_target", diff --git a/src/schemas/json/web-manifest.json b/src/schemas/json/web-manifest.json index 2a1aae4ed67..a024daa586a 100644 --- a/src/schemas/json/web-manifest.json +++ b/src/schemas/json/web-manifest.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/web-manifest.json", "definitions": { "manifest_image_resource": { "type": "object", @@ -12,7 +13,7 @@ "pattern": "^[0-9 x]+$" }, { - "enum": ["any"] + "const": "any" } ] }, @@ -144,7 +145,6 @@ ] } }, - "id": "https://json.schemastore.org/web-manifest.json", "properties": { "background_color": { "description": "The background_color member describes the expected background color of the web application.", diff --git a/src/test/bosh-job-spec/complex.yaml b/src/test/bosh-job-spec/complex.yaml new file mode 100644 index 00000000000..3480ff5fd1a --- /dev/null +++ b/src/test/bosh-job-spec/complex.yaml @@ -0,0 +1,31 @@ +# yaml-language-server: $schema=../../schemas/json/bosh-job-spec.json +# Inspired by: https://bosh.io/docs/jobs/#spec +--- +name: http-server + +description: This job runs a simple HTTP server. + +templates: + bpm.yml: config/bpm.yml + config.json: config/config.json + +packages: + - http-server + +consumes: + - name: server_name + type: hostname + optional: true + +provides: + - name: metrics_api_key + type: api_key + properties: + - id + - secret + +properties: + listen_port: + description: 'Port to listen on' + example: 80 + default: 8080 diff --git a/src/test/bosh-job-spec/minimal.yaml b/src/test/bosh-job-spec/minimal.yaml new file mode 100644 index 00000000000..b45e40e93a8 --- /dev/null +++ b/src/test/bosh-job-spec/minimal.yaml @@ -0,0 +1,4 @@ +# yaml-language-server: $schema=../../schemas/json/bosh-job-spec.json +# Inspired by: https://bosh.io/docs/jobs/#spec +--- +name: minimal-job diff --git a/src/test/bosh-package-spec/complex.yaml b/src/test/bosh-package-spec/complex.yaml new file mode 100644 index 00000000000..720a9ac9de9 --- /dev/null +++ b/src/test/bosh-package-spec/complex.yaml @@ -0,0 +1,18 @@ +# yaml-language-server: $schema=../../schemas/json/bosh-package-spec.json +# From: https://bosh.io/docs/packages/#edit-a-package-spec +--- +name: ruby_1.9.3 + +dependencies: + - libyaml_0.1.4 + +files: + - ruby_1.9.3/ruby-1.9.3-p484.tar.gz + - ruby_1.9.3/rubygems-1.8.24.tgz + - ruby_1.9.3/bundler-1.2.1.gem + - ruby_1.9.3/security/* + +excluded_files: + - ruby_1.9.3/security/secrets.yml + +no_compression: true diff --git a/src/test/bosh-package-spec/minimal.yaml b/src/test/bosh-package-spec/minimal.yaml new file mode 100644 index 00000000000..81338a64570 --- /dev/null +++ b/src/test/bosh-package-spec/minimal.yaml @@ -0,0 +1,4 @@ +# yaml-language-server: $schema=../../schemas/json/bosh-package-spec.json +--- +name: ruby_1.9.3 +files: []