diff --git a/src/schema-validation.jsonc b/src/schema-validation.jsonc index a3ddb768ae6..54891156ab8 100644 --- a/src/schema-validation.jsonc +++ b/src/schema-validation.jsonc @@ -117,24 +117,12 @@ "minecraft-predicate.json", "minecraft-recipe.json", "minecraft-template-pool.json", - "mtad.json", - "mprocs-0.6.4.json", - "nest-cli.json", - "netlify.json", "nuget-project-3.3.0.json", "nuget-project.json", - "opensrm.json", "opspec-io-0.1.7.json", "package.json", - "paper-plugin.json", - "partial-eslint-plugins.json", - "phrase.json", - "pre-commit-config.json", "prisma.json", - "prometheus.json", "putout.json", - "pyrseas-0.8.json", - "pylock.json", "renovate-39.json", "renovate-40.json", "renovate-41.json", @@ -146,10 +134,8 @@ "renovate-inherited-schema-42.json", "renovate-inherited-schema-43.json", "sigmacv.json", - "size-limit.json", "stylelintrc.json", "template.json", - "tmlanguage.json", "tslint.json", "typings.json", "typingsrc.json", @@ -183,17 +169,10 @@ "lsdlschema-3.2.json", "lsdlschema-3.3.json", "lsdlschema.json", - "nodemon.json", - "openhab-5.1.json", - "partial-pyright.json", - "pep-723.json", - "pyproject.json", - "starlake.json", "metaschema-draft-07-unofficial-strict.json", "glazewm.json", "youtrack-app.json", "cinnamon-spice-settings.json", - "pnpm-workspace.json", "podman-desktop-extension.json", "podman-desktop-extension-1.27.json" ], diff --git a/src/schemas/json/abc-supply-plan-10.0.0.json b/src/schemas/json/abc-supply-plan-10.0.0.json index 6f692b27695..d7d18a319dd 100644 --- a/src/schemas/json/abc-supply-plan-10.0.0.json +++ b/src/schemas/json/abc-supply-plan-10.0.0.json @@ -194,21 +194,37 @@ "type": "string" }, "showQuantitiesAs": { - "type": ["string", "null"], "oneOf": [ { "type": "string", "enum": ["Units", "Lots", "Monetary"] }, - { "type": "null" } + { + "type": "null" + } ], "title": "Show Quantities As", - "description": "How to display the quantities for this metric" + "description": "How to display the quantities for this metric", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "comparisonPlanID": { - "type": ["string", "null"], "title": "Comparison Plan ID", - "description": "The ID of the comparison plan to use for this metric or null if no comparison plan is used" + "description": "The ID of the comparison plan to use for this metric or null if no comparison plan is used", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ @@ -226,36 +242,48 @@ { "if": { "properties": { - "metricType": { "const": "mfc" } + "metricType": { + "const": "mfc" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "otherDemand" } + "metricType": { + "const": "otherDemand" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "moh" } + "metricType": { + "const": "moh" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, @@ -269,14 +297,18 @@ }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "demand" } + "metricType": { + "const": "demand" + } } }, "then": { @@ -290,7 +322,9 @@ { "if": { "properties": { - "metricType": { "const": "actuals" } + "metricType": { + "const": "actuals" + } } }, "then": { @@ -304,7 +338,9 @@ { "if": { "properties": { - "metricType": { "const": "firmRelease" } + "metricType": { + "const": "firmRelease" + } } }, "then": { @@ -760,12 +796,26 @@ "inventorySystemMaterialNumber": { "title": "Material Number in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "inventorySystemLocationName": { "title": "Location in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases and filtering it by location", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ @@ -813,7 +863,9 @@ { "if": { "properties": { - "timeDependentPlanningParameters": { "const": false } + "timeDependentPlanningParameters": { + "const": false + } } }, "then": { @@ -849,7 +901,9 @@ { "if": { "properties": { - "timeDependentPlanningParameters": { "const": true } + "timeDependentPlanningParameters": { + "const": true + } } }, "then": { diff --git a/src/schemas/json/abc-supply-plan-10.1.0.json b/src/schemas/json/abc-supply-plan-10.1.0.json index 146da947dfc..57ed347d338 100644 --- a/src/schemas/json/abc-supply-plan-10.1.0.json +++ b/src/schemas/json/abc-supply-plan-10.1.0.json @@ -195,21 +195,37 @@ "type": "string" }, "showQuantitiesAs": { - "type": ["string", "null"], "oneOf": [ { "type": "string", "enum": ["Units", "Lots", "Monetary"] }, - { "type": "null" } + { + "type": "null" + } ], "title": "Show Quantities As", - "description": "How to display the quantities for this metric" + "description": "How to display the quantities for this metric", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "comparisonPlanID": { - "type": ["string", "null"], "title": "Comparison Plan ID", - "description": "The ID of the comparison plan to use for this metric or null if no comparison plan is used" + "description": "The ID of the comparison plan to use for this metric or null if no comparison plan is used", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ @@ -227,48 +243,64 @@ { "if": { "properties": { - "metricType": { "const": "mfc" } + "metricType": { + "const": "mfc" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "targetMFC" } + "metricType": { + "const": "targetMFC" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "otherDemand" } + "metricType": { + "const": "otherDemand" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "moh" } + "metricType": { + "const": "moh" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, @@ -282,14 +314,18 @@ }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "demand" } + "metricType": { + "const": "demand" + } } }, "then": { @@ -303,7 +339,9 @@ { "if": { "properties": { - "metricType": { "const": "actuals" } + "metricType": { + "const": "actuals" + } } }, "then": { @@ -317,7 +355,9 @@ { "if": { "properties": { - "metricType": { "const": "firmRelease" } + "metricType": { + "const": "firmRelease" + } } }, "then": { @@ -774,12 +814,26 @@ "inventorySystemMaterialNumber": { "title": "Material Number in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "inventorySystemLocationName": { "title": "Location in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases and filtering it by location", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ @@ -827,7 +881,9 @@ { "if": { "properties": { - "timeDependentPlanningParameters": { "const": false } + "timeDependentPlanningParameters": { + "const": false + } } }, "then": { @@ -863,7 +919,9 @@ { "if": { "properties": { - "timeDependentPlanningParameters": { "const": true } + "timeDependentPlanningParameters": { + "const": true + } } }, "then": { diff --git a/src/schemas/json/abc-supply-plan-11.0.0.json b/src/schemas/json/abc-supply-plan-11.0.0.json index 83dda3fc211..31a146714d5 100644 --- a/src/schemas/json/abc-supply-plan-11.0.0.json +++ b/src/schemas/json/abc-supply-plan-11.0.0.json @@ -195,21 +195,37 @@ "type": "string" }, "showQuantitiesAs": { - "type": ["string", "null"], "oneOf": [ { "type": "string", "enum": ["Units", "Lots", "Monetary"] }, - { "type": "null" } + { + "type": "null" + } ], "title": "Show Quantities As", - "description": "How to display the quantities for this metric" + "description": "How to display the quantities for this metric", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "comparisonPlanID": { - "type": ["string", "null"], "title": "Comparison Plan ID", - "description": "The ID of the comparison plan to use for this metric or null if no comparison plan is used" + "description": "The ID of the comparison plan to use for this metric or null if no comparison plan is used", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ @@ -227,48 +243,64 @@ { "if": { "properties": { - "metricType": { "const": "mfc" } + "metricType": { + "const": "mfc" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "targetMFC" } + "metricType": { + "const": "targetMFC" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "otherDemand" } + "metricType": { + "const": "otherDemand" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "moh" } + "metricType": { + "const": "moh" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, @@ -282,14 +314,18 @@ }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "demand" } + "metricType": { + "const": "demand" + } } }, "then": { @@ -303,7 +339,9 @@ { "if": { "properties": { - "metricType": { "const": "actuals" } + "metricType": { + "const": "actuals" + } } }, "then": { @@ -317,7 +355,9 @@ { "if": { "properties": { - "metricType": { "const": "firmRelease" } + "metricType": { + "const": "firmRelease" + } } }, "then": { @@ -866,12 +906,26 @@ "inventorySystemMaterialNumber": { "title": "Material Number in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "inventorySystemLocationName": { "title": "Location in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases and filtering it by location", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ @@ -919,7 +973,9 @@ { "if": { "properties": { - "timeDependentPlanningParameters": { "const": false } + "timeDependentPlanningParameters": { + "const": false + } } }, "then": { @@ -955,7 +1011,9 @@ { "if": { "properties": { - "timeDependentPlanningParameters": { "const": true } + "timeDependentPlanningParameters": { + "const": true + } } }, "then": { diff --git a/src/schemas/json/abc-supply-plan-11.1.0.json b/src/schemas/json/abc-supply-plan-11.1.0.json index c03164f1c4c..83bbd8116e8 100644 --- a/src/schemas/json/abc-supply-plan-11.1.0.json +++ b/src/schemas/json/abc-supply-plan-11.1.0.json @@ -196,21 +196,37 @@ "type": "string" }, "showQuantitiesAs": { - "type": ["string", "null"], "oneOf": [ { "type": "string", "enum": ["Units", "Lots", "Monetary"] }, - { "type": "null" } + { + "type": "null" + } ], "title": "Show Quantities As", - "description": "How to display the quantities for this metric" + "description": "How to display the quantities for this metric", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "comparisonPlanID": { - "type": ["string", "null"], "title": "Comparison Plan ID", - "description": "The ID of the comparison plan to use for this metric or null if no comparison plan is used" + "description": "The ID of the comparison plan to use for this metric or null if no comparison plan is used", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ @@ -228,36 +244,48 @@ { "if": { "properties": { - "metricType": { "const": "mfc" } + "metricType": { + "const": "mfc" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "targetMFC" } + "metricType": { + "const": "targetMFC" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "otherDemand" } + "metricType": { + "const": "otherDemand" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, @@ -271,14 +299,18 @@ }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "demand" } + "metricType": { + "const": "demand" + } } }, "then": { @@ -292,7 +324,9 @@ { "if": { "properties": { - "metricType": { "const": "actuals" } + "metricType": { + "const": "actuals" + } } }, "then": { @@ -306,7 +340,9 @@ { "if": { "properties": { - "metricType": { "const": "firmRelease" } + "metricType": { + "const": "firmRelease" + } } }, "then": { @@ -855,12 +891,26 @@ "inventorySystemMaterialNumber": { "title": "Material Number in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "inventorySystemLocationName": { "title": "Location in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases and filtering it by location", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ @@ -908,7 +958,9 @@ { "if": { "properties": { - "timeDependentPlanningParameters": { "const": false } + "timeDependentPlanningParameters": { + "const": false + } } }, "then": { @@ -944,7 +996,9 @@ { "if": { "properties": { - "timeDependentPlanningParameters": { "const": true } + "timeDependentPlanningParameters": { + "const": true + } } }, "then": { diff --git a/src/schemas/json/abc-supply-plan-11.2.0.json b/src/schemas/json/abc-supply-plan-11.2.0.json index 20cb7b97def..3159e2832f9 100644 --- a/src/schemas/json/abc-supply-plan-11.2.0.json +++ b/src/schemas/json/abc-supply-plan-11.2.0.json @@ -212,21 +212,37 @@ "type": "string" }, "showQuantitiesAs": { - "type": ["string", "null"], "oneOf": [ { "type": "string", "enum": ["Units", "Lots", "Monetary"] }, - { "type": "null" } + { + "type": "null" + } ], "title": "Show Quantities As", - "description": "How to display the quantities for this metric" + "description": "How to display the quantities for this metric", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "comparisonPlanID": { - "type": ["string", "null"], "title": "Comparison Plan ID", - "description": "The ID of the comparison plan to use for this metric or null if no comparison plan is used" + "description": "The ID of the comparison plan to use for this metric or null if no comparison plan is used", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ @@ -244,36 +260,48 @@ { "if": { "properties": { - "metricType": { "const": "mfc" } + "metricType": { + "const": "mfc" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "targetMFC" } + "metricType": { + "const": "targetMFC" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "otherDemand" } + "metricType": { + "const": "otherDemand" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, @@ -287,14 +315,18 @@ }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "demand" } + "metricType": { + "const": "demand" + } } }, "then": { @@ -308,7 +340,9 @@ { "if": { "properties": { - "metricType": { "const": "actuals" } + "metricType": { + "const": "actuals" + } } }, "then": { @@ -322,7 +356,9 @@ { "if": { "properties": { - "metricType": { "const": "firmRelease" } + "metricType": { + "const": "firmRelease" + } } }, "then": { @@ -871,12 +907,26 @@ "inventorySystemMaterialNumber": { "title": "Material Number in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "inventorySystemLocationName": { "title": "Location in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases and filtering it by location", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ @@ -924,7 +974,9 @@ { "if": { "properties": { - "timeDependentPlanningParameters": { "const": false } + "timeDependentPlanningParameters": { + "const": false + } } }, "then": { @@ -960,7 +1012,9 @@ { "if": { "properties": { - "timeDependentPlanningParameters": { "const": true } + "timeDependentPlanningParameters": { + "const": true + } } }, "then": { diff --git a/src/schemas/json/abc-supply-plan-11.3.0.json b/src/schemas/json/abc-supply-plan-11.3.0.json index e4093d8ab3c..612344e96d7 100644 --- a/src/schemas/json/abc-supply-plan-11.3.0.json +++ b/src/schemas/json/abc-supply-plan-11.3.0.json @@ -214,7 +214,6 @@ "type": "string" }, "showQuantitiesAs": { - "type": ["string", "null"], "oneOf": [ { "type": "string", @@ -225,12 +224,27 @@ } ], "title": "Show Quantities As", - "description": "How to display the quantities for this metric" + "description": "How to display the quantities for this metric", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "comparisonPlanID": { - "type": ["string", "null"], "title": "Comparison Plan ID", - "description": "The ID of the comparison plan to use for this metric or null if no comparison plan is used" + "description": "The ID of the comparison plan to use for this metric or null if no comparison plan is used", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "regionID": { "type": "string", @@ -920,12 +934,26 @@ "inventorySystemMaterialNumber": { "title": "Material Number in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "inventorySystemLocationName": { "title": "Location in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases and filtering it by location", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ diff --git a/src/schemas/json/abc-supply-plan-11.4.0.json b/src/schemas/json/abc-supply-plan-11.4.0.json index 575f604b5f9..54bc5e8cdda 100644 --- a/src/schemas/json/abc-supply-plan-11.4.0.json +++ b/src/schemas/json/abc-supply-plan-11.4.0.json @@ -214,7 +214,6 @@ "type": "string" }, "showQuantitiesAs": { - "type": ["string", "null"], "oneOf": [ { "type": "string", @@ -225,12 +224,27 @@ } ], "title": "Show Quantities As", - "description": "How to display the quantities for this metric" + "description": "How to display the quantities for this metric", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "comparisonPlanID": { - "type": ["string", "null"], "title": "Comparison Plan ID", - "description": "The ID of the comparison plan to use for this metric or null if no comparison plan is used" + "description": "The ID of the comparison plan to use for this metric or null if no comparison plan is used", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "regionID": { "type": "string", @@ -920,12 +934,26 @@ "inventorySystemMaterialNumber": { "title": "Material Number in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "inventorySystemLocationName": { "title": "Location in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases and filtering it by location", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ diff --git a/src/schemas/json/abc-supply-plan-12.0.0.json b/src/schemas/json/abc-supply-plan-12.0.0.json index 00069e7945e..26700634115 100644 --- a/src/schemas/json/abc-supply-plan-12.0.0.json +++ b/src/schemas/json/abc-supply-plan-12.0.0.json @@ -214,7 +214,6 @@ "type": "string" }, "showQuantitiesAs": { - "type": ["string", "null"], "oneOf": [ { "type": "string", @@ -225,12 +224,27 @@ } ], "title": "Show Quantities As", - "description": "How to display the quantities for this metric" + "description": "How to display the quantities for this metric", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "comparisonPlanID": { - "type": ["string", "null"], "title": "Comparison Plan ID", - "description": "The ID of the comparison plan to use for this metric or null if no comparison plan is used" + "description": "The ID of the comparison plan to use for this metric or null if no comparison plan is used", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "regionID": { "type": "string", @@ -925,12 +939,26 @@ "inventorySystemMaterialNumber": { "title": "Material Number in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "inventorySystemLocationName": { "title": "Location in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases and filtering it by location", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ diff --git a/src/schemas/json/abc-supply-plan-4.0.0.json b/src/schemas/json/abc-supply-plan-4.0.0.json index 8167fd75314..fecb01e0a17 100644 --- a/src/schemas/json/abc-supply-plan-4.0.0.json +++ b/src/schemas/json/abc-supply-plan-4.0.0.json @@ -270,12 +270,26 @@ "inventorySystemMaterialNumber": { "title": "Material Number in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "inventorySystemLocationName": { "title": "Location in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases and filtering it by location", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ diff --git a/src/schemas/json/abc-supply-plan-5.0.0.json b/src/schemas/json/abc-supply-plan-5.0.0.json index 74a7ecc7b12..28d6ab1295a 100644 --- a/src/schemas/json/abc-supply-plan-5.0.0.json +++ b/src/schemas/json/abc-supply-plan-5.0.0.json @@ -270,12 +270,26 @@ "inventorySystemMaterialNumber": { "title": "Material Number in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "inventorySystemLocationName": { "title": "Location in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases and filtering it by location", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ diff --git a/src/schemas/json/abc-supply-plan-6.0.0.json b/src/schemas/json/abc-supply-plan-6.0.0.json index 349790dddf4..d701f38677c 100644 --- a/src/schemas/json/abc-supply-plan-6.0.0.json +++ b/src/schemas/json/abc-supply-plan-6.0.0.json @@ -268,12 +268,26 @@ "inventorySystemMaterialNumber": { "title": "Material Number in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "inventorySystemLocationName": { "title": "Location in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases and filtering it by location", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ diff --git a/src/schemas/json/abc-supply-plan-7.0.0.json b/src/schemas/json/abc-supply-plan-7.0.0.json index 91ab4592259..604c5505fe8 100644 --- a/src/schemas/json/abc-supply-plan-7.0.0.json +++ b/src/schemas/json/abc-supply-plan-7.0.0.json @@ -191,16 +191,25 @@ "type": "string" }, "showQuantitiesAs": { - "type": ["string", "null"], "oneOf": [ { "type": "string", "enum": ["Units", "Lots", "Cost"] }, - { "type": "null" } + { + "type": "null" + } ], "title": "Show Quantities As", - "description": "How to display the quantities for this metric" + "description": "How to display the quantities for this metric", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ @@ -599,12 +608,26 @@ "inventorySystemMaterialNumber": { "title": "Material Number in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "inventorySystemLocationName": { "title": "Location in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases and filtering it by location", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ diff --git a/src/schemas/json/abc-supply-plan-8.0.0.json b/src/schemas/json/abc-supply-plan-8.0.0.json index 9be82df93b9..c0889767fde 100644 --- a/src/schemas/json/abc-supply-plan-8.0.0.json +++ b/src/schemas/json/abc-supply-plan-8.0.0.json @@ -191,16 +191,25 @@ "type": "string" }, "showQuantitiesAs": { - "type": ["string", "null"], "oneOf": [ { "type": "string", "enum": ["Units", "Lots", "Monetary"] }, - { "type": "null" } + { + "type": "null" + } ], "title": "Show Quantities As", - "description": "How to display the quantities for this metric" + "description": "How to display the quantities for this metric", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ @@ -217,36 +226,48 @@ { "if": { "properties": { - "metricType": { "const": "mfc" } + "metricType": { + "const": "mfc" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "otherDemand" } + "metricType": { + "const": "otherDemand" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "moh" } + "metricType": { + "const": "moh" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, @@ -260,14 +281,18 @@ }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "demand" } + "metricType": { + "const": "demand" + } } }, "then": { @@ -281,7 +306,9 @@ { "if": { "properties": { - "metricType": { "const": "actuals" } + "metricType": { + "const": "actuals" + } } }, "then": { @@ -295,7 +322,9 @@ { "if": { "properties": { - "metricType": { "const": "firmRelease" } + "metricType": { + "const": "firmRelease" + } } }, "then": { @@ -721,12 +750,26 @@ "inventorySystemMaterialNumber": { "title": "Material Number in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "inventorySystemLocationName": { "title": "Location in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases and filtering it by location", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ @@ -773,7 +816,9 @@ { "if": { "properties": { - "timeDependentPlanningParameters": { "const": false } + "timeDependentPlanningParameters": { + "const": false + } } }, "then": { @@ -809,7 +854,9 @@ { "if": { "properties": { - "timeDependentPlanningParameters": { "const": true } + "timeDependentPlanningParameters": { + "const": true + } } }, "then": { diff --git a/src/schemas/json/abc-supply-plan-9.0.0.json b/src/schemas/json/abc-supply-plan-9.0.0.json index 9d4b5fbf6ee..041ec6129aa 100644 --- a/src/schemas/json/abc-supply-plan-9.0.0.json +++ b/src/schemas/json/abc-supply-plan-9.0.0.json @@ -194,21 +194,37 @@ "type": "string" }, "showQuantitiesAs": { - "type": ["string", "null"], "oneOf": [ { "type": "string", "enum": ["Units", "Lots", "Monetary"] }, - { "type": "null" } + { + "type": "null" + } ], "title": "Show Quantities As", - "description": "How to display the quantities for this metric" + "description": "How to display the quantities for this metric", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "comparisonPlanID": { - "type": ["string", "null"], "title": "Comparison Plan ID", - "description": "The ID of the comparison plan to use for this metric or null if no comparison plan is used" + "description": "The ID of the comparison plan to use for this metric or null if no comparison plan is used", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ @@ -226,36 +242,48 @@ { "if": { "properties": { - "metricType": { "const": "mfc" } + "metricType": { + "const": "mfc" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "otherDemand" } + "metricType": { + "const": "otherDemand" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "moh" } + "metricType": { + "const": "moh" + } } }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, @@ -269,14 +297,18 @@ }, "then": { "properties": { - "showQuantitiesAs": { "type": "null" } + "showQuantitiesAs": { + "type": "null" + } } } }, { "if": { "properties": { - "metricType": { "const": "demand" } + "metricType": { + "const": "demand" + } } }, "then": { @@ -290,7 +322,9 @@ { "if": { "properties": { - "metricType": { "const": "actuals" } + "metricType": { + "const": "actuals" + } } }, "then": { @@ -304,7 +338,9 @@ { "if": { "properties": { - "metricType": { "const": "firmRelease" } + "metricType": { + "const": "firmRelease" + } } }, "then": { @@ -731,12 +767,26 @@ "inventorySystemMaterialNumber": { "title": "Material Number in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "inventorySystemLocationName": { "title": "Location in the inventory management system", "description": "For pulling inventory from the inventory management system into Initial Inventory and Firm Orders & Releases and filtering it by location", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ @@ -783,7 +833,9 @@ { "if": { "properties": { - "timeDependentPlanningParameters": { "const": false } + "timeDependentPlanningParameters": { + "const": false + } } }, "then": { @@ -819,7 +871,9 @@ { "if": { "properties": { - "timeDependentPlanningParameters": { "const": true } + "timeDependentPlanningParameters": { + "const": true + } } }, "then": { diff --git a/src/schemas/json/changepacks.json b/src/schemas/json/changepacks.json index 0c823ad89ed..53f824a5530 100644 --- a/src/schemas/json/changepacks.json +++ b/src/schemas/json/changepacks.json @@ -15,7 +15,14 @@ }, "latestPackage": { "default": null, - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "publish": { "additionalProperties": { diff --git a/src/schemas/json/devup.json b/src/schemas/json/devup.json index de16bb4e1b5..f49426220f5 100644 --- a/src/schemas/json/devup.json +++ b/src/schemas/json/devup.json @@ -245,10 +245,24 @@ "type": "object", "properties": { "fontFamily": { - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "fontSize": { - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "fontWeight": { "default": null, @@ -265,7 +279,14 @@ ] }, "letterSpacing": { - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "lineHeight": { "default": null, diff --git a/src/schemas/json/docker-bake.json b/src/schemas/json/docker-bake.json index 7aa0b2b8eeb..9cdc4958c79 100644 --- a/src/schemas/json/docker-bake.json +++ b/src/schemas/json/docker-bake.json @@ -33,7 +33,14 @@ "type": "object", "properties": { "default": { - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "additionalProperties": false @@ -98,7 +105,14 @@ "description": "Use the args attribute to define build arguments for the target. This has the same effect as passing a --build-arg flag to the build command.\nYou can set args attributes to use null values. Doing so forces the target to use the ARG value specified in the Dockerfile.", "type": "object", "additionalProperties": { - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "annotations": { @@ -168,7 +182,14 @@ "description": "Assigns image labels to the build. This is the same as the --label flag for docker build.\nt's possible to use a null value for labels. If you do, the builder uses the label value specified in the Dockerfile.", "type": "object", "additionalProperties": { - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "matrix": { diff --git a/src/schemas/json/dotnet-tools.json b/src/schemas/json/dotnet-tools.json index 6ec1cdd1d07..519e0efb206 100644 --- a/src/schemas/json/dotnet-tools.json +++ b/src/schemas/json/dotnet-tools.json @@ -29,19 +29,40 @@ "additionalProperties": true, "properties": { "version": { - "type": ["string", "null"], "title": "Tool NuGet Version", - "description": "Specifies the version of the NuGet package of the tool. If null, the latest version will be used." + "description": "Specifies the version of the NuGet package of the tool. If null, the latest version will be used.", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "commands": { - "type": ["array", "null"], "title": "Available Tool Commands", "description": "Lists all of the available commands provided by this tool. The way to invoke a command depends on the naming format of its executable. If the command is in the format `dotnet-`, it should be invoked using 'dotnet '. If the command is in the format '', it can be directly invoked using just ''. If null, no specific commands are specified.", - "items": { - "type": ["string", "null"], - "title": "Tool Command", - "description": "A command made available by this tool which can be invoked according to the naming convention of its executable. If the command is in the format `dotnet-`, it should be invoked using 'dotnet '. If the command is in the format '', it can be directly invoked using just ''. If null, no specific commands are specified." - } + "anyOf": [ + { + "type": "array", + "items": { + "title": "Tool Command", + "description": "A command made available by this tool which can be invoked according to the naming convention of its executable. If the command is in the format `dotnet-`, it should be invoked using 'dotnet '. If the command is in the format '', it can be directly invoked using just ''. If null, no specific commands are specified.", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "type": "null" + } + ] }, "rollForward": { "type": "boolean", diff --git a/src/schemas/json/drupal-migration.json b/src/schemas/json/drupal-migration.json index 2c1030139df..925c6282bf6 100644 --- a/src/schemas/json/drupal-migration.json +++ b/src/schemas/json/drupal-migration.json @@ -47,7 +47,14 @@ "properties": { "plugin": { "title": "Destination plugin ID", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": ["plugin"] @@ -153,7 +160,14 @@ }, "class": { "title": "Class for migration implementation", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "title": "JSON schema for Drupal migration files", diff --git a/src/schemas/json/evolving-resolutive-process-notation-1.0.json b/src/schemas/json/evolving-resolutive-process-notation-1.0.json index cd21d4e8fc7..55c9c8af818 100644 --- a/src/schemas/json/evolving-resolutive-process-notation-1.0.json +++ b/src/schemas/json/evolving-resolutive-process-notation-1.0.json @@ -8,26 +8,43 @@ "type": "object", "additionalProperties": true, "properties": { - "name": { "type": "string", "description": "Standard name" }, - "version": { "$ref": "#/definitions/semver" } + "name": { + "type": "string", + "description": "Standard name" + }, + "version": { + "$ref": "#/definitions/semver" + } }, "required": ["name", "version"] }, - "content": { "$ref": "#/definitions/contentObject" } + "content": { + "$ref": "#/definitions/contentObject" + } }, "type": "object", - "definitions": { "contentObject": { "type": "object", "properties": { "link": { - "type": ["string", "null"], - "format": "uri", - "description": "Where to gather info. If exists, other properties are ignored" + "description": "Where to gather info. If exists, other properties are ignored", + "anyOf": [ + { + "type": "string", + "format": "uri" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string" + }, + "version": { + "$ref": "#/definitions/semver" }, - "name": { "type": "string" }, - "version": { "$ref": "#/definitions/semver" }, "essence": { "type": "object", "additionalProperties": true, @@ -55,26 +72,36 @@ "type": "object", "additionalProperties": true, "properties": { - "space": { "type": "string" }, + "space": { + "type": "string" + }, "limitations": { "type": "array", - "items": { "type": "string" } + "items": { + "type": "string" + } }, "actors": { "type": "array", - "items": { "type": "string" } + "items": { + "type": "string" + } } }, "description": "Where is the problem and where can we act" }, "tradeoff": { "type": "array", - "items": { "type": "string" }, + "items": { + "type": "string" + }, "description": "Limits to make path curved for solving problem" }, "resources": { "type": "array", - "items": { "type": "string" }, + "items": { + "type": "string" + }, "description": "What we have before solving problem" } }, @@ -90,12 +117,16 @@ }, "resources": { "type": "array", - "items": { "type": "string" }, + "items": { + "type": "string" + }, "description": "What we need to realize solution" }, "advantages": { "type": "array", - "items": { "type": "string" }, + "items": { + "type": "string" + }, "description": "What else we will get from solution beside problem solving" } }, @@ -107,22 +138,30 @@ "properties": { "input": { "type": "array", - "items": { "$ref": "#/definitions/commonObject" }, + "items": { + "$ref": "#/definitions/commonObject" + }, "description": "What we have to get from outer space for sustainable functionality" }, "output": { "type": "array", - "items": { "$ref": "#/definitions/commonObject" }, + "items": { + "$ref": "#/definitions/commonObject" + }, "description": "What we produce" }, "resources": { "type": "array", - "items": { "$ref": "#/definitions/commonObject" }, + "items": { + "$ref": "#/definitions/commonObject" + }, "description": "Our manipulated objects" }, "value": { "type": "array", - "items": { "$ref": "#/definitions/commonObject" }, + "items": { + "$ref": "#/definitions/commonObject" + }, "description": "What we produce for main purpose or valuable to outer external world" }, "commonDescription": { @@ -139,20 +178,44 @@ "type": "object", "additionalProperties": true, "properties": { - "start": { "type": ["string", "null"], "format": "date-time" }, - "end": { "type": ["string", "null"], "format": "date-time" }, + "start": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "end": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, "impactPercent": { "$ref": "#/definitions/percent", "description": "How much this version affects reality versus old ones" }, "authors": { "type": "array", - "items": { "$ref": "#/definitions/person" }, + "items": { + "$ref": "#/definitions/person" + }, "description": "Who did it" }, "source": { "type": "array", - "items": { "type": "string" }, + "items": { + "type": "string" + }, "description": "What is the reason of changing" } }, @@ -160,12 +223,16 @@ }, "content": { "type": "array", - "items": { "$ref": "#/definitions/contentObject" }, + "items": { + "$ref": "#/definitions/contentObject" + }, "description": "Sub level objects" }, "history": { "type": "array", - "items": { "$ref": "#/definitions/contentObject" }, + "items": { + "$ref": "#/definitions/contentObject" + }, "description": "Old versions of object with only changed properties" } }, @@ -175,11 +242,15 @@ "type": "object", "additionalProperties": true, "properties": { - "name": { "type": "string" }, + "name": { + "type": "string" + }, "type": { "$ref": "#/definitions/propertyType" }, - "describe": { "type": "string" } + "describe": { + "type": "string" + } }, "description": "Common object for various reality flashes" }, @@ -202,10 +273,19 @@ "type": "object", "additionalProperties": true, "properties": { - "name": { "type": "string" }, - "impactPercent": { "$ref": "#/definitions/percent" }, - "position": { "type": "string", "description": "Role in organization" }, - "comment": { "type": "string" } + "name": { + "type": "string" + }, + "impactPercent": { + "$ref": "#/definitions/percent" + }, + "position": { + "type": "string", + "description": "Role in organization" + }, + "comment": { + "type": "string" + } }, "description": "Person description" } diff --git a/src/schemas/json/gadget-yaml.json b/src/schemas/json/gadget-yaml.json index 95e59587ce0..9d240474fd0 100644 --- a/src/schemas/json/gadget-yaml.json +++ b/src/schemas/json/gadget-yaml.json @@ -10,8 +10,15 @@ "type": "string" }, "title_url": { - "type": ["string", "null"], - "format": "uri" + "anyOf": [ + { + "type": "string", + "format": "uri" + }, + { + "type": "null" + } + ] }, "description": { "type": "string" @@ -193,7 +200,14 @@ "type": "string" }, "value": { - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": ["display_value"], diff --git a/src/schemas/json/git-cliff.json b/src/schemas/json/git-cliff.json index 4944d230b5e..e39f44dc70d 100644 --- a/src/schemas/json/git-cliff.json +++ b/src/schemas/json/git-cliff.json @@ -173,8 +173,15 @@ }, "limit_commits": { "description": "Maximum number of commits included in the generated changelog.", - "type": ["integer", "null"], - "minimum": 1 + "anyOf": [ + { + "type": "integer", + "minimum": 1 + }, + { + "type": "null" + } + ] }, "recurse_submodules": { "$ref": "#/definitions/optionalBoolean", @@ -377,10 +384,24 @@ } }, "optionalString": { - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "optionalBoolean": { - "type": ["boolean", "null"] + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] } } } diff --git a/src/schemas/json/github-cli-config.json b/src/schemas/json/github-cli-config.json index de0a335df01..ff6cf9a1d7e 100644 --- a/src/schemas/json/github-cli-config.json +++ b/src/schemas/json/github-cli-config.json @@ -25,8 +25,15 @@ }, "editor": { "description": "Text editor command used by GitHub CLI.\nhttps://cli.github.com/manual/gh_config", - "type": ["string", "null"], - "default": null + "default": null, + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "prompt": { "description": "Whether interactive prompting is enabled.\nhttps://cli.github.com/manual/gh_config", @@ -42,25 +49,53 @@ }, "pager": { "description": "Terminal pager command used by GitHub CLI.\nhttps://cli.github.com/manual/gh_config", - "type": ["string", "null"], - "default": null + "default": null, + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "aliases": { "description": "GitHub CLI aliases, keyed by alias name with command expansions as values.\nhttps://cli.github.com/manual/gh_alias", - "type": ["object", "null"], - "additionalProperties": { - "type": "string" - } + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + { + "type": "null" + } + ] }, "http_unix_socket": { "description": "Path to a Unix domain socket to use for HTTP connections.\nhttps://cli.github.com/manual/gh_config", - "type": ["string", "null"], - "default": null + "default": null, + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "browser": { "description": "Web browser command used to open URLs.\nhttps://cli.github.com/manual/gh_config", - "type": ["string", "null"], - "default": null + "default": null, + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "color_labels": { "description": "Whether label colors are displayed using their RGB values.\nhttps://cli.github.com/manual/gh_config", diff --git a/src/schemas/json/github-cli-hosts.json b/src/schemas/json/github-cli-hosts.json index 96e77fccbac..3e15ecd69db 100644 --- a/src/schemas/json/github-cli-hosts.json +++ b/src/schemas/json/github-cli-hosts.json @@ -20,7 +20,14 @@ }, "editor": { "description": "Text editor command used for this host.\nhttps://cli.github.com/manual/gh_config", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "prompt": { "description": "Whether interactive prompting is enabled for this host.\nhttps://cli.github.com/manual/gh_config", @@ -34,15 +41,36 @@ }, "pager": { "description": "Terminal pager command used for this host.\nhttps://cli.github.com/manual/gh_config", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "http_unix_socket": { "description": "Path to a Unix domain socket used for HTTP connections to this host.\nhttps://cli.github.com/manual/gh_config", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "browser": { "description": "Web browser command used for this host.\nhttps://cli.github.com/manual/gh_config", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "color_labels": { "description": "Whether label colors are displayed using their RGB values for this host.\nhttps://cli.github.com/manual/gh_config", diff --git a/src/schemas/json/hugo.json b/src/schemas/json/hugo.json index 65d90696580..58f1b27f76c 100644 --- a/src/schemas/json/hugo.json +++ b/src/schemas/json/hugo.json @@ -1532,18 +1532,32 @@ }, "extensions": { "description": "https://gohugo.io/getting-started/configuration-markup#blackfriday", - "type": ["array", "null"], "default": null, - "uniqueItems": true, - "items": { - "type": "string", - "minLength": 1 - } + "anyOf": [ + { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + }, + "uniqueItems": true + }, + { + "type": "null" + } + ] }, "extensionsMask": { "description": "https://gohugo.io/getting-started/configuration-markup#blackfriday", - "type": ["string", "null"], - "default": null + "default": null, + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "footnoteAnchorPrefix": { "description": "https://gohugo.io/getting-started/configuration-markup#blackfriday", diff --git a/src/schemas/json/jekyll.json b/src/schemas/json/jekyll.json index c99eefe106c..813228b5bf1 100644 --- a/src/schemas/json/jekyll.json +++ b/src/schemas/json/jekyll.json @@ -5,7 +5,14 @@ "definitions": { "nullable-boolean": { "description": "Copy of definition from https://www.schemastore.org/base.json#/definitions/nullable-boolean", - "type": ["boolean", "null"] + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] }, "nullable-timezone": { "description": "Copy of definition from https://www.schemastore.org/base.json#/definitions/nullable-timezone", @@ -803,9 +810,16 @@ }, "syntax_highlighter": { "description": "The syntax highlighter\nhttps://kramdown.gettalong.org/converter/html.html", - "type": ["string", "null"], "default": "rouge", - "minLength": 1 + "anyOf": [ + { + "type": "string", + "minLength": 1 + }, + { + "type": "null" + } + ] }, "syntax_highlighter_opts": { "title": "syntax highlighter options", diff --git a/src/schemas/json/knowledge-unit.json b/src/schemas/json/knowledge-unit.json index 351477318ce..5e9c5009fdf 100644 --- a/src/schemas/json/knowledge-unit.json +++ b/src/schemas/json/knowledge-unit.json @@ -66,20 +66,28 @@ "type": "array", "items": { "oneOf": [ - { "type": "string" }, + { + "type": "string" + }, { "type": "object", "required": ["claim"], "properties": { - "claim": { "type": "string" }, + "claim": { + "type": "string" + }, "confidence": { "type": "string", "enum": ["high", "medium", "low"] }, - "evidence": { "type": "string" }, + "evidence": { + "type": "string" + }, "source_refs": { "type": "array", - "items": { "type": "string" } + "items": { + "type": "string" + } } } } @@ -93,10 +101,14 @@ "type": "object", "required": ["claim", "positions"], "properties": { - "claim": { "type": "string" }, + "claim": { + "type": "string" + }, "positions": { "type": "object", - "additionalProperties": { "type": "string" } + "additionalProperties": { + "type": "string" + } }, "significance": { "type": "string", @@ -110,13 +122,19 @@ "type": "array", "items": { "oneOf": [ - { "type": "string" }, + { + "type": "string" + }, { "type": "object", "required": ["claim"], "properties": { - "claim": { "type": "string" }, - "reason": { "type": "string" } + "claim": { + "type": "string" + }, + "reason": { + "type": "string" + } } } ] @@ -129,7 +147,9 @@ }, "models_used": { "type": "array", - "items": { "type": "string" }, + "items": { + "type": "string" + }, "minItems": 2, "description": "Model identifiers (provider/model format)." }, @@ -164,8 +184,12 @@ "type": "object", "required": ["uri", "content_hash", "ingested_at"], "properties": { - "uri": { "type": "string" }, - "title": { "type": "string" }, + "uri": { + "type": "string" + }, + "title": { + "type": "string" + }, "content_hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" @@ -204,14 +228,28 @@ "description": "Expected rate of change for this knowledge domain." }, "supersedes": { - "type": ["string", "null"], - "pattern": "^ku-[a-z0-9]{12}$", - "description": "ID of the KU this KU replaces." + "description": "ID of the KU this KU replaces.", + "anyOf": [ + { + "type": "string", + "pattern": "^ku-[a-z0-9]{12}$" + }, + { + "type": "null" + } + ] }, "parent_ku_id": { - "type": ["string", "null"], - "pattern": "^ku-[a-z0-9]{12}$", - "description": "ID of a parent KU from which this question was derived." + "description": "ID of a parent KU from which this question was derived.", + "anyOf": [ + { + "type": "string", + "pattern": "^ku-[a-z0-9]{12}$" + }, + { + "type": "null" + } + ] }, "published_at": { "type": "string", @@ -254,7 +292,9 @@ }, "claims": { "type": "array", - "items": { "type": "string" } + "items": { + "type": "string" + } } } }, diff --git a/src/schemas/json/mprocs-0.6.4.json b/src/schemas/json/mprocs-0.6.4.json index 8a4f6bb5db2..991ac29bdde 100644 --- a/src/schemas/json/mprocs-0.6.4.json +++ b/src/schemas/json/mprocs-0.6.4.json @@ -100,9 +100,15 @@ }, "oneOf": [ { + "properties": { + "shell": {} + }, "required": ["shell"] }, { + "properties": { + "cmd": {} + }, "required": ["cmd"] } ], diff --git a/src/schemas/json/nest-cli.json b/src/schemas/json/nest-cli.json index eb8ad2059a9..1cb76abaebe 100644 --- a/src/schemas/json/nest-cli.json +++ b/src/schemas/json/nest-cli.json @@ -144,27 +144,34 @@ }, "AssetsOptions": { "$comment": "https://docs.nestjs.com/cli/monorepo#assets", - "type": ["string", "object"], "description": "For finer control, the element can be object.", - "properties": { - "include": { - "type": "string", - "description": "Glob-like file specifications for the assets to be distributed." - }, - "exclude": { - "type": "string", - "description": "Glob-like file specifications for the assets to be excluded from the include list." - }, - "outDir": { - "type": "string", - "description": "A string specifying the path (relative to the root folder) where the assets should be distributed. Defaults to the same output directory configured for compiler output." + "oneOf": [ + { + "type": "string" }, - "watchAssets": { - "type": "boolean", - "description": "If true, run in watch mode watching specified assets. Setting watchAssets in a top-level compilerOptions property overrides any watchAssets settings within the assets property." + { + "type": "object", + "properties": { + "include": { + "type": "string", + "description": "Glob-like file specifications for the assets to be distributed." + }, + "exclude": { + "type": "string", + "description": "Glob-like file specifications for the assets to be excluded from the include list." + }, + "outDir": { + "type": "string", + "description": "A string specifying the path (relative to the root folder) where the assets should be distributed. Defaults to the same output directory configured for compiler output." + }, + "watchAssets": { + "type": "boolean", + "description": "If true, run in watch mode watching specified assets. Setting watchAssets in a top-level compilerOptions property overrides any watchAssets settings within the assets property." + } + }, + "additionalProperties": false } - }, - "additionalProperties": false + ] }, "GenerateOptions": { "$comment": "https://docs.nestjs.com/cli/monorepo#global-generate-options", @@ -192,155 +199,162 @@ }, "GenerateSpecOptions": { "$comment": "https://docs.nestjs.com/cli/monorepo#global-generate-options", - "type": ["boolean", "object"], "description": "If the value is boolean, a value of true enables spec generation by default and a value of false disables it. A flag passed on the CLI command line overrides this setting, as does a project-specific generateOptions setting (more below). If the value is an object, each key represents a schematic name, and the boolean value determines whether the default spec generation is enabled / disabled for that specific schematic. See https://docs.nestjs.com/cli/monorepo#global-generate-options for details.", - "properties": { - "application": { - "type": "boolean", - "description": "Generate spec file for application schematics or not." - }, - "class": { - "type": "boolean", - "description": "Disable spec file generation for class schematics." - }, - "cl": { - "type": "boolean", - "description": "Alias for class" - }, - "configuration": { - "type": "boolean", - "description": "Generate spec file for configuration schematics or not." - }, - "config": { - "type": "boolean", - "description": "Alias for configuration" - }, - "controller": { - "type": "boolean", - "description": "Generate spec file for controller schematics or not." - }, - "co": { - "type": "boolean", - "description": "Alias for controller" - }, - "decorator": { - "type": "boolean", - "description": "Generate spec file for decorator schematics or not." - }, - "d": { - "type": "boolean", - "description": "Alias for decorator" - }, - "filter": { - "type": "boolean", - "description": "Generate spec file for filter schematics or not." - }, - "f": { - "type": "boolean", - "description": "Alias for filter" - }, - "gateway": { - "type": "boolean", - "description": "Generate spec file for gateway schematics or not." - }, - "ga": { - "type": "boolean", - "description": "Alias for gateway" - }, - "guard": { - "type": "boolean", - "description": "Generate spec file for guard schematics or not." - }, - "gu": { - "type": "boolean", - "description": "Alias for guard" - }, - "interceptor": { - "type": "boolean", - "description": "Generate spec file for interceptor schematics or not." - }, - "in": { - "type": "boolean", - "description": "Alias for interceptor" - }, - "interface": { - "type": "boolean", - "description": "Generate spec file for interface schematics or not." - }, - "middleware": { - "type": "boolean", - "description": "Generate spec file for middleware schematics or not." - }, - "mi": { - "type": "boolean", - "description": "Alias for middleware" - }, - "module": { - "type": "boolean", - "description": "Generate spec file for module schematics or not." - }, - "mo": { - "type": "boolean", - "description": "Alias for module" - }, - "pipe": { - "type": "boolean", - "description": "Generate spec file for pipe schematics or not." - }, - "pi": { - "type": "boolean", - "description": "Alias for pipe" - }, - "provider": { - "type": "boolean", - "description": "Generate spec file for provider schematics or not." - }, - "pr": { - "type": "boolean", - "description": "Alias for provider" - }, - "resolver": { - "type": "boolean", - "description": "Generate spec file for resolver schematics or not." - }, - "r": { - "type": "boolean", - "description": "Alias for resolver" - }, - "service": { - "type": "boolean", - "description": "Generate spec file for service schematics or not." - }, - "s": { - "type": "boolean", - "description": "Alias for resolver" - }, - "library": { - "type": "boolean", - "description": "Generate spec file for library schematics or not." - }, - "lib": { - "type": "boolean", - "description": "Alias for library" - }, - "sub-app": { - "type": "boolean", - "description": "Generate spec file for sub-app schematics or not." - }, - "app": { - "type": "boolean", - "description": "Alias for sub-app" - }, - "resource": { - "type": "boolean", - "description": "Generate spec file for resource schematics or not." - }, - "res": { - "type": "boolean", - "description": "Alias for resource" + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "object", + "properties": { + "application": { + "type": "boolean", + "description": "Generate spec file for application schematics or not." + }, + "class": { + "type": "boolean", + "description": "Disable spec file generation for class schematics." + }, + "cl": { + "type": "boolean", + "description": "Alias for class" + }, + "configuration": { + "type": "boolean", + "description": "Generate spec file for configuration schematics or not." + }, + "config": { + "type": "boolean", + "description": "Alias for configuration" + }, + "controller": { + "type": "boolean", + "description": "Generate spec file for controller schematics or not." + }, + "co": { + "type": "boolean", + "description": "Alias for controller" + }, + "decorator": { + "type": "boolean", + "description": "Generate spec file for decorator schematics or not." + }, + "d": { + "type": "boolean", + "description": "Alias for decorator" + }, + "filter": { + "type": "boolean", + "description": "Generate spec file for filter schematics or not." + }, + "f": { + "type": "boolean", + "description": "Alias for filter" + }, + "gateway": { + "type": "boolean", + "description": "Generate spec file for gateway schematics or not." + }, + "ga": { + "type": "boolean", + "description": "Alias for gateway" + }, + "guard": { + "type": "boolean", + "description": "Generate spec file for guard schematics or not." + }, + "gu": { + "type": "boolean", + "description": "Alias for guard" + }, + "interceptor": { + "type": "boolean", + "description": "Generate spec file for interceptor schematics or not." + }, + "in": { + "type": "boolean", + "description": "Alias for interceptor" + }, + "interface": { + "type": "boolean", + "description": "Generate spec file for interface schematics or not." + }, + "middleware": { + "type": "boolean", + "description": "Generate spec file for middleware schematics or not." + }, + "mi": { + "type": "boolean", + "description": "Alias for middleware" + }, + "module": { + "type": "boolean", + "description": "Generate spec file for module schematics or not." + }, + "mo": { + "type": "boolean", + "description": "Alias for module" + }, + "pipe": { + "type": "boolean", + "description": "Generate spec file for pipe schematics or not." + }, + "pi": { + "type": "boolean", + "description": "Alias for pipe" + }, + "provider": { + "type": "boolean", + "description": "Generate spec file for provider schematics or not." + }, + "pr": { + "type": "boolean", + "description": "Alias for provider" + }, + "resolver": { + "type": "boolean", + "description": "Generate spec file for resolver schematics or not." + }, + "r": { + "type": "boolean", + "description": "Alias for resolver" + }, + "service": { + "type": "boolean", + "description": "Generate spec file for service schematics or not." + }, + "s": { + "type": "boolean", + "description": "Alias for resolver" + }, + "library": { + "type": "boolean", + "description": "Generate spec file for library schematics or not." + }, + "lib": { + "type": "boolean", + "description": "Alias for library" + }, + "sub-app": { + "type": "boolean", + "description": "Generate spec file for sub-app schematics or not." + }, + "app": { + "type": "boolean", + "description": "Alias for sub-app" + }, + "resource": { + "type": "boolean", + "description": "Generate spec file for resource schematics or not." + }, + "res": { + "type": "boolean", + "description": "Alias for resource" + } + }, + "additionalProperties": false } - }, - "additionalProperties": false + ] }, "GenerateBaseDirOptions": { "type": "string", @@ -373,26 +387,33 @@ }, "PluginItems": { "$comment": "https://docs.nestjs.com/openapi/cli-plugin#using-the-cli-plugin", - "type": ["string", "object"], - "properties": { - "name": { - "type": "string", - "description": "The npm package name of the cli plugin, eg @nestjs/swagger." + "oneOf": [ + { + "type": "string" }, - "options": { - "anyOf": [ - { - "$ref": "#/definitions/PluginOptions" - }, - { - "$ref": "#/definitions/GraphQLPluginOptions" + { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The npm package name of the cli plugin, eg @nestjs/swagger." }, - { - "$ref": "#/definitions/SwaggerPluginOptions" + "options": { + "anyOf": [ + { + "$ref": "#/definitions/PluginOptions" + }, + { + "$ref": "#/definitions/GraphQLPluginOptions" + }, + { + "$ref": "#/definitions/SwaggerPluginOptions" + } + ] } - ] + } } - } + ] }, "PluginOptions": { "type": "object", diff --git a/src/schemas/json/netlify.json b/src/schemas/json/netlify.json index eab4c2f055c..2a5fd36f2c7 100644 --- a/src/schemas/json/netlify.json +++ b/src/schemas/json/netlify.json @@ -3,6 +3,7 @@ "$id": "https://json.schemastore.org/netlify.json", "definitions": { "collectionItems": { + "type": "object", "properties": { "fields": { "$ref": "#/definitions/fields" @@ -77,9 +78,17 @@ "required": ["name"], "oneOf": [ { + "type": "object", + "properties": { + "files": {} + }, "required": ["files"] }, { + "type": "object", + "properties": { + "folder": {} + }, "required": ["folder"] } ] @@ -88,6 +97,7 @@ "type": "array", "description": "The fields option maps editor UI widgets to field-value pairs in the saved file. The order of the fields in your Netlify CMS config.yml file determines their order in the editor UI and in the saved file.", "items": { + "type": "object", "properties": { "name": { "type": "string", @@ -120,24 +130,33 @@ } }, "widget": { - "properties": { - "required": { - "type": "boolean", - "description": "Defaults to True" + "oneOf": [ + { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Defaults to True" + }, + "hint": { + "description": "optionally add helper text directly below a widget.", + "type": "string" + }, + "pattern": { + "description": "add field validation by specifying a list with a regex pattern and an error message; more extensive validation can be achieved with custom widgets", + "type": "array" + } + } }, - "hint": { - "description": "optionally add helper text directly below a widget.", + { "type": "string" - }, - "pattern": { - "description": "add field validation by specifying a list with a regex pattern and an error message; more extensive validation can be achieved with custom widgets", - "type": "array" } - } + ] }, "files": { "type": "array", "items": { + "type": "object", "properties": { "name": { "description": "unique identifier for the file", diff --git a/src/schemas/json/nodemon.json b/src/schemas/json/nodemon.json index fc86fa987db..a94da20c451 100644 --- a/src/schemas/json/nodemon.json +++ b/src/schemas/json/nodemon.json @@ -54,6 +54,9 @@ }, "dependencies": { "pollingInterval": { + "properties": { + "legacyWatch": {} + }, "required": ["legacyWatch"] }, "nodeArgs": { diff --git a/src/schemas/json/openhab-5.1.json b/src/schemas/json/openhab-5.1.json index 7bcf8119392..9495c42a4ee 100644 --- a/src/schemas/json/openhab-5.1.json +++ b/src/schemas/json/openhab-5.1.json @@ -92,18 +92,32 @@ }, "allOf": [ { - "if": { "required": ["type"] }, + "if": { + "type": "object", + "properties": { "type": {} }, + "required": ["type"] + }, "then": { "not": { "anyOf": [ - { "required": ["kind"] }, - { "required": ["itemType"] } + { + "properties": { "kind": {} }, + "required": ["kind"] + }, + { + "properties": { "itemType": {} }, + "required": ["itemType"] + } ] } } }, { - "if": { "type": "object", "required": ["itemDimension"] }, + "if": { + "type": "object", + "properties": { "itemDimension": {} }, + "required": ["itemDimension"] + }, "then": { "properties": { "itemType": { "const": "Number" } } } @@ -115,7 +129,12 @@ "itemType": { "not": { "const": "Number" } } } }, - "then": { "not": { "required": ["itemDimension"] } } + "then": { + "not": { + "properties": { "itemDimension": {} }, + "required": ["itemDimension"] + } + } } ] } @@ -168,7 +187,13 @@ }, "allOf": [ { - "if": { "type": "object", "required": ["dimension"] }, + "if": { + "type": "object", + "properties": { + "dimension": {} + }, + "required": ["dimension"] + }, "then": { "properties": { "type": { "const": "Number" } } } }, { @@ -176,7 +201,12 @@ "type": "object", "properties": { "type": { "not": { "const": "Number" } } } }, - "then": { "not": { "required": ["dimension"] } } + "then": { + "not": { + "properties": { "dimension": {} }, + "required": ["dimension"] + } + } } ] }, @@ -221,7 +251,11 @@ }, "allOf": [ { - "if": { "type": "object", "required": ["dimension"] }, + "if": { + "type": "object", + "properties": { "dimension": {} }, + "required": ["dimension"] + }, "then": { "properties": { "type": { "const": "Number" } } } }, { @@ -229,10 +263,19 @@ "type": "object", "properties": { "type": { "not": { "const": "Number" } } } }, - "then": { "not": { "required": ["dimension"] } } + "then": { + "not": { + "properties": { "dimension": {} }, + "required": ["dimension"] + } + } }, { "not": { + "properties": { + "channel": {}, + "channels": {} + }, "required": ["channel", "channels"] } } diff --git a/src/schemas/json/opensrm.json b/src/schemas/json/opensrm.json index 6918db646bb..8020d55a660 100644 --- a/src/schemas/json/opensrm.json +++ b/src/schemas/json/opensrm.json @@ -83,11 +83,36 @@ } }, "anyOf": [ - { "required": ["p50"] }, - { "required": ["p90"] }, - { "required": ["p95"] }, - { "required": ["p99"] }, - { "required": ["p999"] } + { + "properties": { + "p50": {} + }, + "required": ["p50"] + }, + { + "properties": { + "p90": {} + }, + "required": ["p90"] + }, + { + "properties": { + "p95": {} + }, + "required": ["p95"] + }, + { + "properties": { + "p99": {} + }, + "required": ["p99"] + }, + { + "properties": { + "p999": {} + }, + "required": ["p999"] + } ] }, "ErrorRateSLO": { @@ -163,10 +188,30 @@ } }, "anyOf": [ - { "required": ["p50"] }, - { "required": ["p90"] }, - { "required": ["p95"] }, - { "required": ["p99"] } + { + "properties": { + "p50": {} + }, + "required": ["p50"] + }, + { + "properties": { + "p90": {} + }, + "required": ["p90"] + }, + { + "properties": { + "p95": {} + }, + "required": ["p95"] + }, + { + "properties": { + "p99": {} + }, + "required": ["p99"] + } ] }, "LagSLO": { @@ -241,10 +286,30 @@ } }, "anyOf": [ - { "required": ["p50"] }, - { "required": ["p90"] }, - { "required": ["p95"] }, - { "required": ["p99"] } + { + "properties": { + "p50": {} + }, + "required": ["p50"] + }, + { + "properties": { + "p90": {} + }, + "required": ["p90"] + }, + { + "properties": { + "p95": {} + }, + "required": ["p95"] + }, + { + "properties": { + "p99": {} + }, + "required": ["p99"] + } ] }, "ScheduleAdherenceSLO": { @@ -318,11 +383,36 @@ } }, "anyOf": [ - { "required": ["p50"] }, - { "required": ["p90"] }, - { "required": ["p95"] }, - { "required": ["p99"] }, - { "required": ["p999"] } + { + "properties": { + "p50": {} + }, + "required": ["p50"] + }, + { + "properties": { + "p90": {} + }, + "required": ["p90"] + }, + { + "properties": { + "p95": {} + }, + "required": ["p95"] + }, + { + "properties": { + "p99": {} + }, + "required": ["p99"] + }, + { + "properties": { + "p999": {} + }, + "required": ["p999"] + } ] }, "ReplicationLagSLO": { @@ -422,7 +512,20 @@ "type": "object", "description": "Feedback latency SLO - measures time until decision quality is known\nhttps://github.com/rsionnach/opensrm#judgment-slos", "additionalProperties": false, - "anyOf": [{ "required": ["p50"] }, { "required": ["p90"] }], + "anyOf": [ + { + "properties": { + "p50": {} + }, + "required": ["p50"] + }, + { + "properties": { + "p90": {} + }, + "required": ["p90"] + } + ], "properties": { "p50": { "$ref": "#/definitions/Duration", diff --git a/src/schemas/json/paper-plugin.json b/src/schemas/json/paper-plugin.json index 0e6cbc1aa62..052fa1edd14 100644 --- a/src/schemas/json/paper-plugin.json +++ b/src/schemas/json/paper-plugin.json @@ -122,17 +122,17 @@ "authors": { "type": "array", "description": "Main authors of the plugin", + "uniqueItems": true, "items": { - "type": "string", - "uniqueItems": true + "type": "string" } }, "contributors": { "type": "array", "description": "Other contributors to the plugin", + "uniqueItems": true, "items": { - "type": "string", - "uniqueItems": true + "type": "string" } }, "website": { @@ -153,6 +153,7 @@ }, "permissions": { "description": "Permissions for this plugin", + "type": "object", "additionalProperties": { "$ref": "#/definitions/permission" } diff --git a/src/schemas/json/partial-pyright.json b/src/schemas/json/partial-pyright.json index 6b749fa4bb0..f4343f21536 100644 --- a/src/schemas/json/partial-pyright.json +++ b/src/schemas/json/partial-pyright.json @@ -722,8 +722,16 @@ "x-intellij-html-description": "Set of identifiers that should be assumed to contain a constant value wherever used within this program. For example, { "DEBUG": true } indicates that pyright should assume that the identifier DEBUG will always be equal to True. If this identifier is used within a conditional expression (such as if not DEBUG:) pyright will use the indicated value to determine whether the guarded block is reachable or not. Member expressions that reference one of these constants (e.g. my_module.DEBUG) are also supported.", "properties": {}, "additionalProperties": { - "type": ["string", "boolean"], - "title": "Value of constant (boolean or string)" + "oneOf": [ + { + "type": "string", + "title": "Value of constant (boolean or string)" + }, + { + "type": "boolean", + "title": "Value of constant (boolean or string)" + } + ] } }, "typeCheckingMode": { diff --git a/src/schemas/json/phrase.json b/src/schemas/json/phrase.json index 9bb78a8e339..b09ca608099 100644 --- a/src/schemas/json/phrase.json +++ b/src/schemas/json/phrase.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://json.schemastore.org/phrase.json", + "type": "object", "definitions": { "project_id": { "description": "ID of the project", diff --git a/src/schemas/json/pnpm-workspace.json b/src/schemas/json/pnpm-workspace.json index d790e59b0f2..b0c6851d666 100644 --- a/src/schemas/json/pnpm-workspace.json +++ b/src/schemas/json/pnpm-workspace.json @@ -781,8 +781,12 @@ "description": "This setting allows the checking of the state of dependencies before running scripts.", "oneOf": [ { - "type": ["string", "boolean"], - "enum": ["install", "warn", "error", "prompt", false] + "type": "string", + "enum": ["install", "warn", "error", "prompt"] + }, + { + "type": "boolean", + "enum": [false] } ] }, diff --git a/src/schemas/json/pre-commit-config.json b/src/schemas/json/pre-commit-config.json index 47327c90d59..84cf29e1496 100644 --- a/src/schemas/json/pre-commit-config.json +++ b/src/schemas/json/pre-commit-config.json @@ -42,6 +42,12 @@ "items": { "$ref": "#/definitions/hook_definition", "type": "object", + "properties": { + "id": {}, + "name": {}, + "entry": {}, + "language": {} + }, "required": ["id", "name", "entry", "language"] } } diff --git a/src/schemas/json/prometheus-alertmanager.json b/src/schemas/json/prometheus-alertmanager.json index 5c8b249939f..604e7400c58 100644 --- a/src/schemas/json/prometheus-alertmanager.json +++ b/src/schemas/json/prometheus-alertmanager.json @@ -1,7 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://www.schemastore.org/prometheus-alertmanager.json", - "additionalProperties": false, "description": "Prometheus Alertmanager configuration file", "definitions": { "duration": { @@ -1601,161 +1600,197 @@ } } }, - "properties": { - "global": { + "anyOf": [ + { "type": "object", - "additionalProperties": false, "properties": { - "smtp_from": { - "type": "string", - "description": "The default SMTP From header field" - }, - "smtp_smarthost": { - "type": "string", - "description": "The default SMTP smarthost used for sending emails, including port number. Port number usually is 25, or 587 for SMTP over TLS (sometimes referred to as STARTTLS).", - "examples": ["smtp.example.org:587"] - }, - "smtp_hello": { - "type": "string", - "description": "The default hostname to identify to the SMTP server", - "default": "localhost" - }, - "smtp_auth_username": { - "type": "string" - }, - "smtp_auth_password": { - "type": "string" - }, - "smtp_auth_password_file": { - "type": "string" - }, - "smtp_auth_identity": { - "type": "string" - }, - "smtp_auth_secret": { - "type": "string" - }, - "smtp_require_tls": { - "type": "boolean", - "description": "The default SMTP TLS requirement", - "default": true - }, - "smtp_tls_config": { - "$ref": "#/definitions/tls_config", - "description": "The default TLS configuration for SMTP receivers" - }, - "jira_api_url": { - "type": "string" - }, - "slack_api_url": { - "type": "string" - }, - "slack_api_url_file": { - "type": "string" - }, - "victorops_api_key": { - "type": "string" - }, - "victorops_api_key_file": { - "type": "string" - }, - "victorops_api_url": { - "type": "string", - "default": "https://alert.victorops.com/integrations/generic/20131114/alert/" - }, - "pagerduty_url": { - "type": "string", - "default": "https://events.pagerduty.com/v2/enqueue" - }, - "opsgenie_api_key": { - "type": "string" - }, - "opsgenie_api_key_file": { - "type": "string" - }, - "opsgenie_api_url": { - "type": "string", - "default": "https://api.opsgenie.com/" - }, - "rocketchat_api_url": { - "type": "string", - "default": "https://open.rocket.chat/" - }, - "rocketchat_token": { - "type": "string" - }, - "rocketchat_token_file": { - "type": "string" - }, - "rocketchat_token_id": { - "type": "string" - }, - "rocketchat_token_id_file": { - "type": "string" - }, - "wechat_api_url": { - "type": "string", - "default": "https://qyapi.weixin.qq.com/cgi-bin/" + "global": { + "type": "object", + "additionalProperties": false, + "properties": { + "smtp_from": { + "type": "string", + "description": "The default SMTP From header field" + }, + "smtp_smarthost": { + "type": "string", + "description": "The default SMTP smarthost used for sending emails, including port number. Port number usually is 25, or 587 for SMTP over TLS (sometimes referred to as STARTTLS).", + "examples": ["smtp.example.org:587"] + }, + "smtp_hello": { + "type": "string", + "description": "The default hostname to identify to the SMTP server", + "default": "localhost" + }, + "smtp_auth_username": { + "type": "string" + }, + "smtp_auth_password": { + "type": "string" + }, + "smtp_auth_password_file": { + "type": "string" + }, + "smtp_auth_identity": { + "type": "string" + }, + "smtp_auth_secret": { + "type": "string" + }, + "smtp_require_tls": { + "type": "boolean", + "description": "The default SMTP TLS requirement", + "default": true + }, + "smtp_tls_config": { + "$ref": "#/definitions/tls_config", + "description": "The default TLS configuration for SMTP receivers" + }, + "jira_api_url": { + "type": "string" + }, + "slack_api_url": { + "type": "string" + }, + "slack_api_url_file": { + "type": "string" + }, + "victorops_api_key": { + "type": "string" + }, + "victorops_api_key_file": { + "type": "string" + }, + "victorops_api_url": { + "type": "string", + "default": "https://alert.victorops.com/integrations/generic/20131114/alert/" + }, + "pagerduty_url": { + "type": "string", + "default": "https://events.pagerduty.com/v2/enqueue" + }, + "opsgenie_api_key": { + "type": "string" + }, + "opsgenie_api_key_file": { + "type": "string" + }, + "opsgenie_api_url": { + "type": "string", + "default": "https://api.opsgenie.com/" + }, + "rocketchat_api_url": { + "type": "string", + "default": "https://open.rocket.chat/" + }, + "rocketchat_token": { + "type": "string" + }, + "rocketchat_token_file": { + "type": "string" + }, + "rocketchat_token_id": { + "type": "string" + }, + "rocketchat_token_id_file": { + "type": "string" + }, + "wechat_api_url": { + "type": "string", + "default": "https://qyapi.weixin.qq.com/cgi-bin/" + }, + "wechat_api_secret": { + "type": "string" + }, + "wechat_api_corp_id": { + "type": "string" + }, + "telegram_api_url": { + "type": "string", + "default": "https://api.telegram.org" + }, + "webex_api_url": { + "type": "string", + "default": "https://webexapis.com/v1/messages" + }, + "http_config": { + "$ref": "#/definitions/http_config", + "description": "The default HTTP client configuration" + }, + "resolve_timeout": { + "$ref": "#/definitions/duration", + "default": "5m" + } + } }, - "wechat_api_secret": { - "type": "string" + "templates": { + "description": "Files from which custom notification template definitions are read. The last component may use a wildcard matcher, e.g. 'templates/*.tmpl'.", + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] }, - "wechat_api_corp_id": { - "type": "string" + "route": { + "$ref": "#/definitions/route" }, - "telegram_api_url": { - "type": "string", - "default": "https://api.telegram.org" + "receivers": { + "type": "array", + "items": { + "$ref": "#/definitions/receiver" + } }, - "webex_api_url": { - "type": "string", - "default": "https://webexapis.com/v1/messages" + "inhibit_rules": { + "anyOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/inhibit_rule" + } + }, + { + "type": "null" + } + ] }, - "http_config": { - "$ref": "#/definitions/http_config", - "description": "The default HTTP client configuration" + "mute_time_intervals": { + "description": "DEPRECATED. A list of mute time intervals for muting routes. Use time_intervals", + "anyOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/time_interval" + } + }, + { + "type": "null" + } + ] }, - "resolve_timeout": { - "$ref": "#/definitions/duration", - "default": "5m" + "time_intervals": { + "anyOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/time_interval" + } + }, + { + "type": "null" + } + ] } - } - }, - "templates": { - "type": ["array", "null"], - "items": { - "type": "string" - }, - "description": "Files from which custom notification template definitions are read. The last component may use a wildcard matcher, e.g. 'templates/*.tmpl'." - }, - "route": { - "$ref": "#/definitions/route" - }, - "receivers": { - "type": "array", - "items": { - "$ref": "#/definitions/receiver" - } - }, - "inhibit_rules": { - "type": ["array", "null"], - "items": { - "$ref": "#/definitions/inhibit_rule" - } - }, - "mute_time_intervals": { - "type": ["array", "null"], - "items": { - "$ref": "#/definitions/time_interval" }, - "description": "DEPRECATED. A list of mute time intervals for muting routes. Use time_intervals" + "additionalProperties": false }, - "time_intervals": { - "type": ["array", "null"], - "items": { - "$ref": "#/definitions/time_interval" - } + { + "type": "null" } - }, - "type": ["object", "null"] + ] } diff --git a/src/schemas/json/prometheus.json b/src/schemas/json/prometheus.json index 73f26127f20..a4b2939bf49 100644 --- a/src/schemas/json/prometheus.json +++ b/src/schemas/json/prometheus.json @@ -49,9 +49,15 @@ }, "oneOf": [ { + "properties": { + "password": {} + }, "required": ["password"] }, { + "properties": { + "password_file": {} + }, "required": ["password_file"] } ], @@ -78,9 +84,15 @@ }, "oneOf": [ { + "properties": { + "credentials": {} + }, "required": ["credentials"] }, { + "properties": { + "credentials_file": {} + }, "required": ["credentials_file"] } ], @@ -145,6 +157,7 @@ } }, "sdk": { + "type": "object", "properties": { "tenant_id": { "type": "string" @@ -200,9 +213,15 @@ }, "oneOf": [ { + "properties": { + "client_secret": {} + }, "required": ["client_secret"] }, { + "properties": { + "client_secret_file": {} + }, "required": ["client_secret_file"] } ], @@ -222,6 +241,7 @@ { "if": { "not": { + "type": "object", "properties": { "basic_auth": { "const": null @@ -230,6 +250,7 @@ } }, "then": { + "type": "object", "properties": { "authorization": { "const": null @@ -252,6 +273,7 @@ { "if": { "not": { + "type": "object", "properties": { "authorization": { "const": null @@ -260,6 +282,7 @@ } }, "then": { + "type": "object", "properties": { "basic_auth": { "const": null @@ -282,6 +305,7 @@ { "if": { "not": { + "type": "object", "properties": { "sigv4": { "const": null @@ -290,6 +314,7 @@ } }, "then": { + "type": "object", "properties": { "basic_auth": { "const": null @@ -312,6 +337,7 @@ { "if": { "not": { + "type": "object", "properties": { "oauth2": { "const": null @@ -320,6 +346,7 @@ } }, "then": { + "type": "object", "properties": { "basic_auth": { "const": null @@ -342,6 +369,7 @@ { "if": { "not": { + "type": "object", "properties": { "bearer_token": { "const": null @@ -350,6 +378,7 @@ } }, "then": { + "type": "object", "properties": { "basic_auth": { "const": null @@ -372,6 +401,7 @@ { "if": { "not": { + "type": "object", "properties": { "bearer_token_file": { "const": null @@ -380,6 +410,7 @@ } }, "then": { + "type": "object", "properties": { "basic_auth": { "const": null @@ -457,6 +488,7 @@ } }, "if": { + "type": "object", "properties": { "action": { "const": "replace" @@ -464,6 +496,9 @@ } }, "then": { + "properties": { + "target_label": {} + }, "required": ["target_label"] } } diff --git a/src/schemas/json/prometheus.rules.test.json b/src/schemas/json/prometheus.rules.test.json index 77037394106..ec57b4dc5d3 100644 --- a/src/schemas/json/prometheus.rules.test.json +++ b/src/schemas/json/prometheus.rules.test.json @@ -40,21 +40,35 @@ "type": "object" }, "duration": { - "minLength": 1, - "pattern": "^([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?$", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string", + "minLength": 1, + "pattern": "^([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?$" + }, + { + "type": "null" + } + ] }, "label_value": { "type": "string" }, "labels": { - "additionalProperties": false, - "patternProperties": { - "^[a-zA-Z_][a-zA-Z0-9_]*$": { - "$ref": "#/definitions/label_value" + "anyOf": [ + { + "type": "object", + "patternProperties": { + "^[a-zA-Z_][a-zA-Z0-9_]*$": { + "$ref": "#/definitions/label_value" + } + }, + "additionalProperties": false + }, + { + "type": "null" } - }, - "type": ["object", "null"] + ] }, "promql_test_case": { "additionalProperties": false, @@ -72,7 +86,14 @@ }, "expr": { "description": "PromQL expression to evaluate", - "anyOf": [{ "type": "string" }, { "type": "integer" }] + "anyOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ] } }, "required": ["expr", "eval_time"], @@ -157,14 +178,28 @@ "evaluation_interval": { "default": "1m", "description": "The evaluation interval for the tests. [duration] format.", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "group_eval_order": { "description": "The order in which group names are listed below will be the order of evaluation of rule groups (at a given evaluation time).", - "items": { - "type": "string" - }, - "type": ["array", "null"] + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] }, "rule_files": { "description": "List of rule files to consider for testing. Globs are supported.", diff --git a/src/schemas/json/pubspec.json b/src/schemas/json/pubspec.json index e1ff3a0fab3..12e4cb0b956 100644 --- a/src/schemas/json/pubspec.json +++ b/src/schemas/json/pubspec.json @@ -175,9 +175,16 @@ }, "homepage": { "description": "A URL pointing to the website for your package. [Learn more](https://dart.dev/tools/pub/pubspec#homepage)", - "type": ["string", "null"], - "format": "uri", - "examples": ["https://flutter.dev", "https://dart.dev/"] + "examples": ["https://flutter.dev", "https://dart.dev/"], + "anyOf": [ + { + "type": "string", + "format": "uri" + }, + { + "type": "null" + } + ] }, "repository": { "description": "The optional repository field should contain the URL for your package's source code repository. [Learn more](https://dart.dev/tools/pub/pubspec#repository)", @@ -333,7 +340,9 @@ }, "workspace": { "type": "array", - "items": { "type": "string" } + "items": { + "type": "string" + } }, "resolution": { "type": "string", @@ -350,167 +359,174 @@ }, "flutter": { "description": "Flutter-specific metadata. [Learn more.](https://docs.flutter.dev/tools/pubspec)", - "type": ["object", "null"], - "properties": { - "uses-material-design": { - "description": "Whether this project uses the Material Design package. Required if you use the Material icon font", - "type": "boolean", - "default": true - }, - "generate": { - "description": "Enables generation of localized strings from arb files", - "type": "boolean", - "default": false - }, - "assets": { - "description": "A list of directories or files that contain images or other assets. [Learn more.](https://flutter.dev/docs/development/ui/assets-and-images)", - "type": "array", - "items": { - "oneOf": [ - { - "description": "A directory or a file containing assets. A directory has a trailing slash. [Learn more.](https://flutter.dev/docs/development/ui/assets-and-images)", - "type": "string" + "anyOf": [ + { + "type": "object", + "properties": { + "uses-material-design": { + "description": "Whether this project uses the Material Design package. Required if you use the Material icon font", + "type": "boolean", + "default": true + }, + "generate": { + "description": "Enables generation of localized strings from arb files", + "type": "boolean", + "default": false + }, + "assets": { + "description": "A list of directories or files that contain images or other assets. [Learn more.](https://flutter.dev/docs/development/ui/assets-and-images)", + "type": "array", + "items": { + "oneOf": [ + { + "description": "A directory or a file containing assets. A directory has a trailing slash. [Learn more.](https://flutter.dev/docs/development/ui/assets-and-images)", + "type": "string" + }, + { + "type": "object", + "properties": { + "path": { + "type": "string", + "examples": ["images/", "postscript_tiger.svg"] + }, + "flavors": { + "title": "Asset Flavors", + "description": "A list of flavors that include the asset. [Learn more.](https://docs.flutter.dev/deployment/flavors#conditionally-bundling-assets-based-on-flavor)", + "type": "array", + "items": { + "description": "The name of the flavor", + "type": "string" + } + }, + "transformers": { + "title": "Asset Transformers", + "description": "A list of transformers to apply to the asset. [Learn more.](https://docs.flutter.dev/ui/assets/asset-transformation)", + "type": "array", + "items": { + "type": "object", + "properties": { + "package": { + "description": "A Dart command-line app that is invoked with dart run with at least two arguments: --input, which contains the path to the file to transform and --output, which is the location where the transformer code must write its output to", + "type": "string", + "examples": ["vector_graphics_compiler"] + }, + "args": { + "type": "array", + "items": { + "type": "string" + }, + "minItems": 1, + "examples": [["--tessellate", "--font-size=14"]] + } + }, + "required": ["package"], + "examples": [] + }, + "examples": [ + [ + { + "package": "vector_graphics_compiler", + "args": ["--tessellate", "--font-size=14"] + } + ] + ] + }, + "platforms": { + "title": "Asset Platforms", + "description": "A list of platforms that include the asset. [Learn more.](https://docs.flutter.dev/tools/pubspec#assets)", + "type": "array", + "items": { + "type": "string", + "enum": [ + "android", + "ios", + "linux", + "macos", + "web", + "windows" + ] + } + } + }, + "required": ["path"], + "additionalProperties": false + } + ] }, - { + "examples": [ + ["images/", "fonts/"], + [ + "my_icon.png", + { + "path": "svg/", + "transformers": [ + { + "package": "vector_graphics_compiler", + "args": ["--tessellate", "--font-size=14"] + } + ] + } + ] + ] + }, + "fonts": { + "title": "Fonts", + "description": "A list of font families and their fonts. [Learn more.](https://docs.flutter.dev/cookbook/design/fonts#declare-the-font-in-the-pubspec-yaml-file)", + "type": "array", + "items": { "type": "object", "properties": { - "path": { - "type": "string", - "examples": ["images/", "postscript_tiger.svg"] + "family": { + "description": "The name of the typeface. You use this name in the `fontFamily` property of a `TextStyle` object.", + "type": "string" }, - "flavors": { - "title": "Asset Flavors", - "description": "A list of flavors that include the asset. [Learn more.](https://docs.flutter.dev/deployment/flavors#conditionally-bundling-assets-based-on-flavor)", - "type": "array", - "items": { - "description": "The name of the flavor", - "type": "string" - } - }, - "transformers": { - "title": "Asset Transformers", - "description": "A list of transformers to apply to the asset. [Learn more.](https://docs.flutter.dev/ui/assets/asset-transformation)", + "fonts": { "type": "array", + "minItems": 1, "items": { "type": "object", "properties": { - "package": { - "description": "A Dart command-line app that is invoked with dart run with at least two arguments: --input, which contains the path to the file to transform and --output, which is the location where the transformer code must write its output to", + "asset": { + "description": "The path to the font file. Flutter supports the following font formats: OpenType font collections: .ttc, TrueType fonts: .ttf, OpenType fonts: .otf. Flutter does not support fonts in the Web Open Font Format, .woff and .woff2, on desktop platforms.", "type": "string", - "examples": ["vector_graphics_compiler"] + "pattern": "^.+\\.(ttf|otf|ttc)$" }, - "args": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "examples": [["--tessellate", "--font-size=14"]] + "style": { + "description": "The style property specifies whether the glyphs in the font file display as either italic or normal. These values correspond to the FontStyle. You can use these styles in the fontStyle property of a TextStyle object. [Learn more.](https://docs.flutter.dev/cookbook/design/fonts#set-font-weight)", + "type": "string", + "enum": ["normal", "italic"] + }, + "weight": { + "description": "The weight property specifies the weight of the outlines in the file. These values correspond to the FontWeight and can be used in the fontWeight property of a TextStyle object. You can't use the weight property to override the weight of the font. [Learn more.](https://docs.flutter.dev/cookbook/design/fonts#specify-the-font-weight)", + "type": "integer", + "enum": [100, 200, 300, 400, 500, 600, 700, 800, 900] } }, - "required": ["package"], - "examples": [] - }, - "examples": [ - [ - { - "package": "vector_graphics_compiler", - "args": ["--tessellate", "--font-size=14"] - } - ] - ] - }, - "platforms": { - "title": "Asset Platforms", - "description": "A list of platforms that include the asset. [Learn more.](https://docs.flutter.dev/tools/pubspec#assets)", - "type": "array", - "items": { - "type": "string", - "enum": [ - "android", - "ios", - "linux", - "macos", - "web", - "windows" - ] + "required": ["asset"] } } }, - "required": ["path"], - "additionalProperties": false - } - ] - }, - "examples": [ - ["images/", "fonts/"], - [ - "my_icon.png", - { - "path": "svg/", - "transformers": [ - { - "package": "vector_graphics_compiler", - "args": ["--tessellate", "--font-size=14"] - } - ] - } - ] - ] - }, - "fonts": { - "title": "Fonts", - "description": "A list of font families and their fonts. [Learn more.](https://docs.flutter.dev/cookbook/design/fonts#declare-the-font-in-the-pubspec-yaml-file)", - "type": "array", - "items": { - "type": "object", - "properties": { - "family": { - "description": "The name of the typeface. You use this name in the `fontFamily` property of a `TextStyle` object.", - "type": "string" - }, - "fonts": { - "type": "array", - "minItems": 1, - "items": { - "type": "object", - "properties": { - "asset": { - "description": "The path to the font file. Flutter supports the following font formats: OpenType font collections: .ttc, TrueType fonts: .ttf, OpenType fonts: .otf. Flutter does not support fonts in the Web Open Font Format, .woff and .woff2, on desktop platforms.", - "type": "string", - "pattern": "^.+\\.(ttf|otf|ttc)$" - }, - "style": { - "description": "The style property specifies whether the glyphs in the font file display as either italic or normal. These values correspond to the FontStyle. You can use these styles in the fontStyle property of a TextStyle object. [Learn more.](https://docs.flutter.dev/cookbook/design/fonts#set-font-weight)", - "type": "string", - "enum": ["normal", "italic"] - }, - "weight": { - "description": "The weight property specifies the weight of the outlines in the file. These values correspond to the FontWeight and can be used in the fontWeight property of a TextStyle object. You can't use the weight property to override the weight of the font. [Learn more.](https://docs.flutter.dev/cookbook/design/fonts#specify-the-font-weight)", - "type": "integer", - "enum": [100, 200, 300, 400, 500, 600, 700, 800, 900] - } - }, - "required": ["asset"] - } + "required": ["family", "fonts"] } }, - "required": ["family", "fonts"] + "shaders": { + "title": "Fragment Shaders", + "description": "Shaders, in the form of GLSL files with the .frag extension. The Flutter command-line tool compiles the shader to its appropriate backend format, and generates its necessary runtime metadata. The compiled shader is then included in the application just like an asset. [Learn more](https://docs.flutter.dev/ui/design/graphics/fragment-shaders#adding-shaders-to-an-application)", + "type": "array", + "items": { + "type": "string", + "description": "Path to a GLSL shader", + "pattern": "\\.frag$", + "examples": ["shaders/myshader.frag"] + }, + "examples": [["shaders/triangle.frag", "glsl/motion_blur.frag"]] + } } }, - "shaders": { - "title": "Fragment Shaders", - "description": "Shaders, in the form of GLSL files with the .frag extension. The Flutter command-line tool compiles the shader to its appropriate backend format, and generates its necessary runtime metadata. The compiled shader is then included in the application just like an asset. [Learn more](https://docs.flutter.dev/ui/design/graphics/fragment-shaders#adding-shaders-to-an-application)", - "type": "array", - "items": { - "type": "string", - "description": "Path to a GLSL shader", - "pattern": "\\.frag$", - "examples": ["shaders/myshader.frag"] - }, - "examples": [["shaders/triangle.frag", "glsl/motion_blur.frag"]] + { + "type": "null" } - } + ] } }, "required": ["name"], diff --git a/src/schemas/json/pylock.json b/src/schemas/json/pylock.json index 249fdbb8e85..664c454490b 100644 --- a/src/schemas/json/pylock.json +++ b/src/schemas/json/pylock.json @@ -164,6 +164,7 @@ } }, "1.0": { + "type": "object", "additionalProperties": false, "required": ["lock-version", "created-by", "packages"], "properties": { @@ -225,40 +226,82 @@ "allOf": [ { "if": { + "type": "object", + "properties": { + "vcs": {} + }, "required": ["vcs"] }, "then": { "not": { + "type": "object", + "properties": { + "directory": {}, + "archive": {}, + "sdist": {}, + "wheels": {} + }, "required": ["directory", "archive", "sdist", "wheels"] } } }, { "if": { + "type": "object", + "properties": { + "directory": {} + }, "required": ["directory"] }, "then": { "not": { + "type": "object", + "properties": { + "vcs": {}, + "archive": {}, + "sdist": {}, + "wheels": {} + }, "required": ["vcs", "archive", "sdist", "wheels"] } } }, { "if": { + "type": "object", + "properties": { + "sdist": {} + }, "required": ["sdist"] }, "then": { "not": { + "type": "object", + "properties": { + "vcs": {}, + "directory": {}, + "archive": {} + }, "required": ["vcs", "directory", "archive"] } } }, { "if": { + "type": "object", + "properties": { + "wheels": {} + }, "required": ["wheels"] }, "then": { "not": { + "type": "object", + "properties": { + "vcs": {}, + "directory": {}, + "archive": {} + }, "required": ["vcs", "directory", "archive"] } } diff --git a/src/schemas/json/pyproject.json b/src/schemas/json/pyproject.json index eb86382d753..ddbc9408c9f 100644 --- a/src/schemas/json/pyproject.json +++ b/src/schemas/json/pyproject.json @@ -742,11 +742,6 @@ "description": "Named groups of dependencies, similar to `requirements.txt` files, which launchers, IDEs, and other tools can find and identify by name. Each item in `[dependency-groups]` is defined as mapping of group name to list of [dependency specifiers](https://packaging.python.org/en/latest/specifications/dependency-specifiers/).", "markdownDescription": "Named groups of dependencies, similar to `requirements.txt` files, which launchers, IDEs, and other tools can find and identify by name. Each item in `[dependency-groups]` is defined as mapping of group name to list of [dependency specifiers](https://packaging.python.org/en/latest/specifications/dependency-specifiers/).", "type": "object", - "properties": { - "dev": { - "$ref": "#/definitions/DependencyGroup" - } - }, "patternProperties": { "^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9._-]*[a-zA-Z0-9])$": { "$ref": "#/definitions/DependencyGroup" diff --git a/src/schemas/json/pyrseas-0.8.json b/src/schemas/json/pyrseas-0.8.json index 5e339fae427..9900e21a0b7 100644 --- a/src/schemas/json/pyrseas-0.8.json +++ b/src/schemas/json/pyrseas-0.8.json @@ -25,6 +25,7 @@ "additionalProperties": false, "properties": { "all": { + "type": "object", "additionalProperties": false, "properties": { "grantable": { @@ -39,6 +40,7 @@ "additionalProperties": false, "properties": { "insert": { + "type": "object", "additionalProperties": false, "properties": { "grantable": { @@ -53,6 +55,7 @@ "additionalProperties": false, "properties": { "delete": { + "type": "object", "additionalProperties": false, "properties": { "grantable": { @@ -67,6 +70,7 @@ "additionalProperties": false, "properties": { "select": { + "type": "object", "additionalProperties": false, "properties": { "grantable": { @@ -81,6 +85,7 @@ "additionalProperties": false, "properties": { "update": { + "type": "object", "additionalProperties": false, "properties": { "grantable": { @@ -95,6 +100,7 @@ "additionalProperties": false, "properties": { "truncate": { + "type": "object", "additionalProperties": false, "properties": { "grantable": { @@ -109,6 +115,7 @@ "additionalProperties": false, "properties": { "references": { + "type": "object", "additionalProperties": false, "properties": { "grantable": { @@ -123,6 +130,7 @@ "additionalProperties": false, "properties": { "trigger": { + "type": "object", "additionalProperties": false, "properties": { "grantable": { @@ -137,6 +145,7 @@ "additionalProperties": false, "properties": { "usage": { + "type": "object", "additionalProperties": false, "properties": { "grantable": { @@ -151,6 +160,7 @@ "additionalProperties": false, "properties": { "execute": { + "type": "object", "additionalProperties": false, "properties": { "grantable": { @@ -165,6 +175,7 @@ "additionalProperties": false, "properties": { "create": { + "type": "object", "additionalProperties": false, "properties": { "grantable": { diff --git a/src/schemas/json/quikrun.json b/src/schemas/json/quikrun.json index fa144800d54..e4ed54369ac 100644 --- a/src/schemas/json/quikrun.json +++ b/src/schemas/json/quikrun.json @@ -63,9 +63,16 @@ "default": true }, "temp_dir": { - "type": ["string", "null"], "description": "Directory to store temporary execution files", - "default": null + "default": null, + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "cd_to_file_dir": { "type": "boolean", diff --git a/src/schemas/json/rumdl.json b/src/schemas/json/rumdl.json index e42bd213769..e900639e828 100644 --- a/src/schemas/json/rumdl.json +++ b/src/schemas/json/rumdl.json @@ -7,7 +7,14 @@ "properties": { "extends": { "description": "Path to a base config file to inherit settings from.\nSupports relative paths, absolute paths, `~/` for the home directory, and\n`$VAR` / `${VAR}` environment-variable expansion (a literal `$` is written `$$`).\nExample: `extends = \"../base.rumdl.toml\"` or `extends = \"$GEM_PATH/base.rumdl.toml\"`", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "global": { "$ref": "#/definitions/GlobalConfig", @@ -116,7 +123,14 @@ }, "output-format": { "description": "Output format for linting results (e.g., \"text\", \"json\", \"pylint\", etc.)", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "fixable": { "description": "Rules that are allowed to be fixed when --fix is used\nIf specified, only these rules will be fixed", @@ -147,7 +161,14 @@ }, "cache-dir": { "description": "Directory to store cache files (default: .rumdl_cache).\nA leading `~/` expands to the home directory; a relative path resolves\nagainst the project root.\nCan also be set via --cache-dir CLI flag or RUMDL_CACHE_DIR environment variable", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "cache": { "description": "Whether caching is enabled (default: true)\nCan also be disabled via --no-cache CLI flag", @@ -179,8 +200,15 @@ }, "LineLength": { "description": "A line length value that can be 0 (meaning no limit) or a positive value (≥1)\n\nMany configuration values for line length need to support both:\n- 0: Special value meaning \"no line length limit\"\n- ≥1: Actual line length limit\n\nThis type enforces those constraints at deserialization time.", - "type": ["integer", "null"], - "minimum": 0 + "anyOf": [ + { + "type": "integer", + "minimum": 0 + }, + { + "type": "null" + } + ] }, "MarkdownFlavor": { "description": "Markdown flavor/dialect. Accepts: standard, gfm, mkdocs, mdx, pandoc, quarto, obsidian, kramdown, azure_devops, myst, hugo, mdg, gh-aw (preview). 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.", diff --git a/src/schemas/json/size-limit.json b/src/schemas/json/size-limit.json index a42a3600a55..7e95074ee4b 100644 --- a/src/schemas/json/size-limit.json +++ b/src/schemas/json/size-limit.json @@ -116,6 +116,7 @@ { "if": { "not": { + "type": "object", "properties": { "webpack": { "type": "boolean", @@ -125,6 +126,7 @@ } }, "then": { + "type": "object", "properties": { "config": { "title": "a path to a custom webpack config.", diff --git a/src/schemas/json/solarxy-config.json b/src/schemas/json/solarxy-config.json index 77fc1a8e263..018701016ef 100644 --- a/src/schemas/json/solarxy-config.json +++ b/src/schemas/json/solarxy-config.json @@ -12,22 +12,22 @@ "properties": { "default": { "default": 30000, - "minimum": 0.0, + "minimum": 0, "type": "integer" }, "environment": { "default": 50000, - "minimum": 0.0, + "minimum": 0, "type": "integer" }, "hero": { "default": 100000, - "minimum": 0.0, + "minimum": 0, "type": "integer" }, "prop": { "default": 20000, - "minimum": 0.0, + "minimum": 0, "type": "integer" } }, @@ -66,7 +66,14 @@ "sidecar_dir": { "default": null, "description": "Override location of the `.solarxy-review.json` sidecar. `None` (default) ⇒ sibling to the model file. Relative paths are resolved against the model's parent directory (so `\".solarxy\"` produces `/.solarxy/.solarxy-review.json`). Absolute paths are used as-is.", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "type": "object" @@ -121,7 +128,7 @@ "type": "number" }, "triangle_budget_tolerance_percent": { - "default": 20.0, + "default": 20, "type": "number" } }, @@ -154,7 +161,7 @@ }, "format_version": { "default": 1, - "minimum": 0.0, + "minimum": 0, "type": "integer" }, "review": { @@ -175,7 +182,7 @@ ], "default": { "flipped_normal_dot": -0.5, - "triangle_budget_tolerance_percent": 20.0 + "triangle_budget_tolerance_percent": 20 } }, "validation": { diff --git a/src/schemas/json/starlake.json b/src/schemas/json/starlake.json index cc6eebadffe..9a1657b0499 100644 --- a/src/schemas/json/starlake.json +++ b/src/schemas/json/starlake.json @@ -1614,6 +1614,7 @@ "$ref": "#/definitions/JDBCSchemaBase" }, { + "type": "object", "properties": { "tables": { "type": "array", @@ -1640,6 +1641,7 @@ "$ref": "#/definitions/ExtractV1Base" }, { + "type": "object", "properties": { "jdbcSchemas": { "description": "Describe what to fetch from a database connection. Scope: Schema and Data extraction.", @@ -1662,7 +1664,20 @@ } }, "not": { - "anyOf": [{ "required": ["openAPI"] }, { "required": ["restAPI"] }] + "anyOf": [ + { + "properties": { + "openAPI": {} + }, + "required": ["openAPI"] + }, + { + "properties": { + "restAPI": {} + }, + "required": ["restAPI"] + } + ] } } ] @@ -1832,6 +1847,7 @@ "$ref": "#/definitions/ExtractV1Base" }, { + "type": "object", "properties": { "openAPI": { "$ref": "#/definitions/OpenAPIV1", @@ -2168,6 +2184,7 @@ "$ref": "#/definitions/ExtractV1Base" }, { + "type": "object", "properties": { "restAPI": { "$ref": "#/definitions/RestAPIV1", @@ -2254,6 +2271,7 @@ "required": ["input", "output"] }, "KafkaTopicConfigV1": { + "type": "object", "properties": { "topicName": { "$ref": "#/definitions/ConvertibleToString", @@ -2772,36 +2790,69 @@ }, "oneOf": [ { + "properties": { + "extract": {} + }, "required": ["extract"] }, { + "properties": { + "load": {} + }, "required": ["load"] }, { + "properties": { + "transform": {} + }, "required": ["transform"] }, { + "properties": { + "env": {} + }, "required": ["env"] }, { + "properties": { + "types": {} + }, "required": ["types"] }, { + "properties": { + "tables": {} + }, "required": ["tables"] }, { + "properties": { + "table": {} + }, "required": ["table"] }, { + "properties": { + "task": {} + }, "required": ["task"] }, { + "properties": { + "application": {} + }, "required": ["application"] }, { + "properties": { + "refs": {} + }, "required": ["refs"] }, { + "properties": { + "dag": {} + }, "required": ["dag"] } ] diff --git a/src/schemas/json/tizen_workspace.json b/src/schemas/json/tizen_workspace.json index 0030c6b3a75..e0647fe9fd5 100644 --- a/src/schemas/json/tizen_workspace.json +++ b/src/schemas/json/tizen_workspace.json @@ -79,7 +79,14 @@ "pattern": "^((?:.?[0-9]+){3,}(?:[-a-z]+)?)$" }, "working_folder": { - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "chrome_path": { "type": "string" diff --git a/src/schemas/json/tmlanguage.json b/src/schemas/json/tmlanguage.json index d7ad91fd2a6..55b2ca65f07 100644 --- a/src/schemas/json/tmlanguage.json +++ b/src/schemas/json/tmlanguage.json @@ -161,9 +161,17 @@ "begin": { "anyOf": [ { + "type": "object", + "properties": { + "end": {} + }, "required": ["end"] }, { + "type": "object", + "properties": { + "while": {} + }, "required": ["while"] } ] @@ -173,9 +181,19 @@ "contentName": { "anyOf": [ { + "type": "object", + "properties": { + "begin": {}, + "end": {} + }, "required": ["begin", "end"] }, { + "type": "object", + "properties": { + "begin": {}, + "while": {} + }, "required": ["begin", "while"] } ] @@ -183,9 +201,19 @@ "beginCaptures": { "anyOf": [ { + "type": "object", + "properties": { + "begin": {}, + "end": {} + }, "required": ["begin", "end"] }, { + "type": "object", + "properties": { + "begin": {}, + "while": {} + }, "required": ["begin", "while"] } ] diff --git a/src/schemas/json/vespertide-model.json b/src/schemas/json/vespertide-model.json index 732621a76c5..95bb59cbca2 100644 --- a/src/schemas/json/vespertide-model.json +++ b/src/schemas/json/vespertide-model.json @@ -6,7 +6,14 @@ "type": "object", "properties": { "comment": { - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "default": { "anyOf": [ @@ -355,7 +362,14 @@ } }, "name": { - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "type": { "type": "string", @@ -374,7 +388,14 @@ } }, "name": { - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "on_delete": { "anyOf": [ @@ -438,7 +459,14 @@ } }, "name": { - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "type": { "type": "string", @@ -466,7 +494,14 @@ } }, "description": { - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "name": { "type": "string"