Skip to content

Commit

Permalink
define properties object for configuration (#3081)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryfu-msft authored Mar 16, 2023
1 parent 1b0c45f commit 7d29a95
Showing 1 changed file with 25 additions and 20 deletions.
45 changes: 25 additions & 20 deletions schemas/JSON/configuration/configuration.schema.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 7d29a95

Please sign in to comment.