winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 7d29a95d1f0cf41c9f996df34bdc662a6f2d444b
parent 1b0c45fbe9c822808db85fa1d6b43564db9a11c6
Author: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>
Date:   Thu, 16 Mar 2023 11:41:28 -0700

define properties object for configuration (#3081)


Diffstat:
Mschemas/JSON/configuration/configuration.schema.0.1.json | 45+++++++++++++++++++++++++--------------------
1 file changed, 25 insertions(+), 20 deletions(-)

diff --git a/schemas/JSON/configuration/configuration.schema.0.1.json b/schemas/JSON/configuration/configuration.schema.0.1.json @@ -4,28 +4,33 @@ "description": "A representation of a configuration used by an orchestrator for WinDSC.", "type": "object", "properties": { - "assertions": { - "type": "array", - "items": { "$ref": "#/$defs/resource" } - }, - "resources": { - "type": "array", - "items": { "$ref": "#/$defs/resource" } - }, - "parameters": { - "type": "array", - "items": { "$ref": "#/$defs/resource" }, - "description": "Resources that retrieve information via a 'get' operation." - }, - "configurationVersion": { - "type": "string", - "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$", - "maxLength": 128, - "default": "0.1", - "description": "The configuration syntax version" + "properties": { + "type": "object", + "properties": { + "assertions": { + "type": "array", + "items": { "$ref": "#/$defs/resource" } + }, + "resources": { + "type": "array", + "items": { "$ref": "#/$defs/resource" } + }, + "parameters": { + "type": "array", + "items": { "$ref": "#/$defs/resource" }, + "description": "Resources that retrieve information via a 'get' operation." + }, + "configurationVersion": { + "type": "string", + "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$", + "maxLength": 128, + "default": "0.1.0", + "description": "The configuration syntax version" + } + }, + "required": ["configurationVersion"] } }, - "required": ["configurationVersion"], "$defs": { "resource": {