Skip to content

Commit 4d3ccc2

Browse files
(SCHEMA) Regenerate schemas for v3.0.2
1 parent a977295 commit 4d3ccc2

File tree

106 files changed

+13135
-22
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+13135
-22
lines changed

schemas/v3.0.2/bundled/config/document.json

Lines changed: 419 additions & 0 deletions
Large diffs are not rendered by default.

schemas/v3.0.2/bundled/config/document.vscode.json

Lines changed: 659 additions & 0 deletions
Large diffs are not rendered by default.

schemas/v3.0.2/bundled/outputs/config/get.json

Lines changed: 318 additions & 0 deletions
Large diffs are not rendered by default.

schemas/v3.0.2/bundled/outputs/config/get.vscode.json

Lines changed: 352 additions & 0 deletions
Large diffs are not rendered by default.

schemas/v3.0.2/bundled/outputs/config/set.json

Lines changed: 334 additions & 0 deletions
Large diffs are not rendered by default.

schemas/v3.0.2/bundled/outputs/config/set.vscode.json

Lines changed: 368 additions & 0 deletions
Large diffs are not rendered by default.

schemas/v3.0.2/bundled/outputs/config/test.json

Lines changed: 340 additions & 0 deletions
Large diffs are not rendered by default.

schemas/v3.0.2/bundled/outputs/config/test.vscode.json

Lines changed: 374 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.2/outputs/resource/get.json",
4+
"title": "dsc resource get result",
5+
"description": "Describes the return data for a DSC resource instance from the `dsc resource get` command. The return data is either a single object that describes the actual state of a non-nested instance or an array of objects that describe the actual state of the nested instances for a group or adapter resource.",
6+
"anyOf": [
7+
{
8+
"$ref": "/PowerShell/DSC/main/schemas/v3.0.2/outputs/resource/get.simple.json"
9+
},
10+
{
11+
"type": "array",
12+
"items": {
13+
"$ref": "/PowerShell/DSC/main/schemas/v3.0.2/outputs/resource/get.full.json"
14+
}
15+
}
16+
],
17+
"$defs": {
18+
"https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.2/outputs/resource/get.simple.json": {
19+
"$schema": "https://json-schema.org/draft/2020-12/schema",
20+
"$id": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.2/outputs/resource/get.simple.json",
21+
"title": "dsc resource get result (simple)",
22+
"description": "Describes the return data for a single DSC resource instance from the `dsc resource get` command. This data is returned for instances that aren't group resources, adapter resources, or nested inside a group or adapter resource.\nWhen you use `dsc resource get` for a group or adapter resource, the command returns an array of full test result objects that include the name and type for the nested instances.",
23+
"type": "object",
24+
"required": [
25+
"actualState"
26+
],
27+
"properties": {
28+
"actualState": {
29+
"title": "Actual state",
30+
"description": "This property always represents the current state of the DSC resource instance as returned by its `get` method. DSC validates this return value against the DSC resource's schema.",
31+
"type": "object"
32+
}
33+
}
34+
},
35+
"https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.2/outputs/resource/get.full.json": {
36+
"$schema": "https://json-schema.org/draft/2020-12/schema",
37+
"$id": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.2/outputs/resource/get.full.json",
38+
"title": "dsc resource get result (full)",
39+
"description": "Describes the return data for the full result of the `get` operation for a\nresource instance. This data is returned:\n\n- For every instance in a configuration document when you use the\n `dsc config get` command.\n\n- For nested instances of a group or adapter resource when you use the\n `dsc resource get` command.",
40+
"type": "object",
41+
"required": [
42+
"metadata",
43+
"name",
44+
"result",
45+
"type"
46+
],
47+
"properties": {
48+
"metadata": {
49+
"$ref": "/PowerShell/DSC/main/schemas/v3.0.2/metadata/resourceInstanceResult.json"
50+
},
51+
"name": {
52+
"$ref": "/PowerShell/DSC/main/schemas/v3.0.2/definitions/instanceName.json"
53+
},
54+
"type": {
55+
"$ref": "/PowerShell/DSC/main/schemas/v3.0.2/definitions/resourceType.json"
56+
},
57+
"result": {
58+
"$ref": "/PowerShell/DSC/main/schemas/v3.0.2/outputs/resource/get.json"
59+
}
60+
}
61+
},
62+
"https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.2/metadata/resourceInstanceResult.json": {
63+
"$schema": "https://json-schema.org/draft/2020-12/schema",
64+
"$id": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.2/metadata/resourceInstanceResult.json",
65+
"title": "Resource instance result metadata",
66+
"description": "Defines metadata DSC returns for a DSC configuration operation against a resource instance in a configuration document, as from the `dsc config get` or `dsc config set` commands. The metadata properties under the `Microsoft.DSC` property describe the context of the operation.",
67+
"type": "object",
68+
"required": [
69+
"Microsoft.DSC"
70+
],
71+
"properties": {
72+
"Microsoft.DSC": {
73+
"title": "DSC context metadata",
74+
"description": "The child properties for this metadata describe the context of the DSC operation against a resource instance, including the duration of the operation.",
75+
"type": "object",
76+
"required": [
77+
"duration"
78+
],
79+
"properties": {
80+
"duration": {
81+
"$ref": "/PowerShell/DSC/main/schemas/v3.0.2/metadata/Microsoft.DSC/duration.json"
82+
}
83+
}
84+
}
85+
}
86+
},
87+
"https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.2/definitions/instanceName.json": {
88+
"$schema": "https://json-schema.org/draft/2020-12/schema",
89+
"$id": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.2/definitions/instanceName.json",
90+
"title": "Instance name",
91+
"description": "The short, human-readable name for a DSC resource instance. Must be unique within a DSC Configuration document. Must be a non-empty string containing only letters, numbers, and spaces.",
92+
"type": "string",
93+
"pattern": "^[a-zA-Z0-9 ]+$",
94+
"minLength": 1
95+
},
96+
"https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.2/definitions/resourceType.json": {
97+
"$schema": "https://json-schema.org/draft/2020-12/schema",
98+
"$id": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.2/definitions/resourceType.json",
99+
"title": "DSC resource fully qualified type name",
100+
"description": "The namespaced name of the DSC resource, using the syntax:\n\nowner[.group][.area]/name\n\nFor example:\n\n - Microsoft.SqlServer/Database\n - Microsoft.SqlServer.Database/User\n",
101+
"type": "string",
102+
"pattern": "^\\w+(\\.\\w+){0,2}\\/\\w+$"
103+
},
104+
"https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.2/metadata/Microsoft.DSC/duration.json": {
105+
"$schema": "https://json-schema.org/draft/2020-12/schema",
106+
"$id": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.2/metadata/Microsoft.DSC/duration.json",
107+
"title": "Duration",
108+
"description": "Defines the duration of a DSC operation against a configuration document or resource instance as a string following the format defined in ISO8601 ABNF for `duration`. For example, `PT0.611216S` represents a duration of about `0.61` seconds. For more information, see: https://datatracker.ietf.org/doc/html/rfc3339#appendix-A",
109+
"type": "string",
110+
"format": "duration"
111+
}
112+
}
113+
}
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.2/outputs/resource/get.json",
4+
"title": "dsc resource get result",
5+
"description": "Describes the return data for a DSC resource instance from the `dsc resource get` command. The return data is either a single object that describes the actual state of a non-nested instance or an array of objects that describe the actual state of the nested instances for a group or adapter resource.",
6+
"anyOf": [
7+
{
8+
"$ref": "#/$defs/PowerShell/DSC/main/schemas/v3.0.2/outputs/resource/get.simple.json"
9+
},
10+
{
11+
"type": "array",
12+
"items": {
13+
"$ref": "#/$defs/PowerShell/DSC/main/schemas/v3.0.2/outputs/resource/get.full.json"
14+
}
15+
}
16+
],
17+
"$defs": {
18+
"PowerShell": {
19+
"DSC": {
20+
"main": {
21+
"schemas": {
22+
"v3.0.2": {
23+
"outputs": {
24+
"resource": {
25+
"get.simple.json": {
26+
"$schema": "https://json-schema.org/draft/2020-12/schema",
27+
"$id": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.2/outputs/resource/get.simple.json",
28+
"title": "dsc resource get result (simple)",
29+
"description": "Describes the return data for a single DSC resource instance from the `dsc resource get` command. This data is returned for instances that aren't group resources, adapter resources, or nested inside a group or adapter resource.\nWhen you use `dsc resource get` for a group or adapter resource, the command returns an array of full test result objects that include the name and type for the nested instances.",
30+
"type": "object",
31+
"required": [
32+
"actualState"
33+
],
34+
"properties": {
35+
"actualState": {
36+
"title": "Actual state",
37+
"description": "This property always represents the current state of the DSC resource instance as returned by its `get` method. DSC validates this return value against the DSC resource's schema.",
38+
"type": "object"
39+
}
40+
}
41+
},
42+
"get.full.json": {
43+
"$schema": "https://json-schema.org/draft/2020-12/schema",
44+
"$id": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.2/outputs/resource/get.full.json",
45+
"title": "dsc resource get result (full)",
46+
"description": "Describes the return data for the full result of the `get` operation for a\nresource instance. This data is returned:\n\n- For every instance in a configuration document when you use the\n `dsc config get` command.\n\n- For nested instances of a group or adapter resource when you use the\n `dsc resource get` command.",
47+
"type": "object",
48+
"required": [
49+
"metadata",
50+
"name",
51+
"result",
52+
"type"
53+
],
54+
"properties": {
55+
"metadata": {
56+
"$ref": "#/$defs/PowerShell/DSC/main/schemas/v3.0.2/metadata/resourceInstanceResult.json"
57+
},
58+
"name": {
59+
"$ref": "#/$defs/PowerShell/DSC/main/schemas/v3.0.2/definitions/instanceName.json"
60+
},
61+
"type": {
62+
"$ref": "#/$defs/PowerShell/DSC/main/schemas/v3.0.2/definitions/resourceType.json"
63+
},
64+
"result": {
65+
"$ref": "#/$defs/PowerShell/DSC/main/schemas/v3.0.2/outputs/resource/get.json"
66+
}
67+
}
68+
}
69+
}
70+
},
71+
"metadata": {
72+
"resourceInstanceResult.json": {
73+
"$schema": "https://json-schema.org/draft/2020-12/schema",
74+
"$id": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.2/metadata/resourceInstanceResult.json",
75+
"title": "Resource instance result metadata",
76+
"description": "Defines metadata DSC returns for a DSC configuration operation against a resource instance in a configuration document, as from the `dsc config get` or `dsc config set` commands. The metadata properties under the `Microsoft.DSC` property describe the context of the operation.",
77+
"markdownDescription": "Defines metadata DSC returns for a configuration operation, as from the `dsc config get` or\n`dsc config set` commands. The metadata properties under the `Microsoft.DSC` property describe\nthe context of the operation.",
78+
"type": "object",
79+
"required": [
80+
"Microsoft.DSC"
81+
],
82+
"properties": {
83+
"Microsoft.DSC": {
84+
"title": "DSC context metadata",
85+
"description": "The child properties for this metadata describe the context of the DSC operation against a resource instance, including the duration of the operation.",
86+
"type": "object",
87+
"required": [
88+
"duration"
89+
],
90+
"properties": {
91+
"duration": {
92+
"$ref": "#/$defs/PowerShell/DSC/main/schemas/v3.0.2/metadata/Microsoft.DSC/duration.json"
93+
}
94+
}
95+
}
96+
}
97+
},
98+
"Microsoft.DSC": {
99+
"duration.json": {
100+
"$schema": "https://json-schema.org/draft/2020-12/schema",
101+
"$id": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.2/metadata/Microsoft.DSC/duration.json",
102+
"title": "Duration",
103+
"description": "Defines the duration of a DSC operation against a configuration document or resource instance as a string following the format defined in ISO8601 ABNF for `duration`. For example, `PT0.611216S` represents a duration of about `0.61` seconds. For more information, see: https://datatracker.ietf.org/doc/html/rfc3339#appendix-A",
104+
"markdownDescription": "Defines the duration of a DSC operation against a configuration document or resource instance as\na string following the format defined in [ISO8601 ABNF for `duration`][01]. For example,\n`PT0.611216S` represents a duration of about `0.61` seconds.\n\n[01]: https://datatracker.ietf.org/doc/html/rfc3339#appendix-A",
105+
"type": "string",
106+
"format": "duration"
107+
}
108+
}
109+
},
110+
"definitions": {
111+
"instanceName.json": {
112+
"$schema": "https://json-schema.org/draft/2020-12/schema",
113+
"$id": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.2/definitions/instanceName.json",
114+
"title": "Instance name",
115+
"description": "The short, human-readable name for a DSC resource instance. Must be unique within a DSC Configuration document. Must be a non-empty string containing only letters, numbers, and spaces.",
116+
"type": "string",
117+
"pattern": "^[a-zA-Z0-9 ]+$",
118+
"minLength": 1,
119+
"patternErrorMessage": "Invalid value for instance name. An instance name must be a non-empty string containing only\nletters, numbers, and spaces.\n",
120+
"markdownDescription": "***\n[_Online Documentation_][01]\n***\n\nDefines the short, human-readable name for a DSC resource instance. This property must be unique\nwithin a DSC configuration document. If any resource instances share the same name, DSC raises an\nerror.\n\nThe instance name must be a non-empty string containing only letters, numbers, and spaces.\n\n[01]: https://learn.microsoft.com/powershell/dsc/reference/schemas/config/resource?view=dsc-3.0&preserve-view=true#name\n"
121+
},
122+
"resourceType.json": {
123+
"$schema": "https://json-schema.org/draft/2020-12/schema",
124+
"$id": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.2/definitions/resourceType.json",
125+
"title": "DSC resource fully qualified type name",
126+
"description": "The namespaced name of the DSC resource, using the syntax:\n\nowner[.group][.area]/name\n\nFor example:\n\n - Microsoft.SqlServer/Database\n - Microsoft.SqlServer.Database/User\n",
127+
"type": "string",
128+
"pattern": "^\\w+(\\.\\w+){0,2}\\/\\w+$",
129+
"markdownDescription": "***\n[_Online Documentation_][01]\n***\n\nThe namespaced name of the DSC resource, using the syntax:\n\n```yaml\nowner[.group][.area]/name\n```\n\nFor example:\n\n- `Microsoft.SqlServer/Database`\n- `Microsoft.SqlServer.Database/User`\n\n[01]: https://learn.microsoft.com/powershell/dsc/reference/schemas/definitions/resourcetype?view=dsc-3.0&preserve-view=true\n",
130+
"patternErrorMessage": "Invalid type name. Valid resource type names always define an owner and a name separated by a\nslash, like `Microsoft/OSInfo`. Type names may optionally include a group and area to namespace\nthe resource under the owner, like `Microsoft.Windows/Registry`.\n"
131+
}
132+
}
133+
}
134+
}
135+
}
136+
}
137+
}
138+
}
139+
}

0 commit comments

Comments
 (0)