Skip to content

Commit 272753d

Browse files
(SCHEMA) Update example data to use current v3 schemas
1 parent 68b0575 commit 272753d

File tree

5 files changed

+31
-29
lines changed

5 files changed

+31
-29
lines changed

schemas/examples/configuration_document/example.dsc.config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# For testing outside of the repository, set the schema in the yaml server directive to:
2-
# https://raw.githubusercontent.com/PowerShell/DSC/main/2024/04/resource/manifest.json
2+
# https://raw.githubusercontent.com/PowerShell/DSC/main/v3/resource/manifest.json
33
#
44
# Hover on the keys to see the documentation. Try changing values and adding new settings.
5-
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/config/document.json
5+
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3/config/document.json
66
# Try adding the variables, metadata, and parameters properties,
77
# then use IntelliSense to define a few entries.
88

schemas/examples/output/config.get.yaml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
1-
# yaml-language-server: $schema=../../2024/04/bundled/outputs/config/get.vscode.json
1+
# yaml-language-server: $schema=../../v3.0/bundled/outputs/config/get.vscode.json
22
#
33
# Shows output from `dsc config get --path dsc/examples/osinfo_registry.dsc.yaml
44
#
55
metadata:
66
Microsoft.DSC:
7-
version: 3.0.0-preview.7
8-
operation: Get
9-
executionType: Actual
10-
startDatetime: 2024-04-16T15:29:19.776934500-05:00
11-
endDatetime: 2024-04-16T15:29:20.052168700-05:00
12-
duration: PT0.275234200S
13-
securityContext: Restricted
7+
version: 3.0.0
8+
operation: get
9+
executionType: actual
10+
startDatetime: 2025-05-09T11:57:24.223992200-05:00
11+
endDatetime: 2025-05-09T11:57:25.237202300-05:00
12+
duration: PT1.0132101S
13+
securityContext: restricted
1414
results:
1515
- metadata:
1616
Microsoft.DSC:
17-
duration: PT0.053120900S
17+
duration: PT0.0391229S
1818
name: os
1919
type: Microsoft/OSInfo
2020
result:
2121
actualState:
2222
$id: https://developer.microsoft.com/json-schemas/dsc/os_info/20230303/Microsoft.Dsc.OS_Info.schema.json
2323
family: Windows
24-
version: 10.0.22631
24+
version: 10.0.26100
2525
edition: Windows 11 Enterprise
2626
bitness: '64'
27+
architecture: x86_64
2728
- metadata:
2829
Microsoft.DSC:
29-
duration: PT0.137957200S
30+
duration: PT0.1583279S
3031
name: windows product name
3132
type: Microsoft.Windows/Registry
3233
result:
@@ -37,7 +38,7 @@ results:
3738
String: Windows 10 Enterprise
3839
- metadata:
3940
Microsoft.DSC:
40-
duration: PT0.035664200S
41+
duration: PT0.049571S
4142
name: system root
4243
type: Microsoft.Windows/Registry
4344
result:

schemas/examples/output/config.test.yaml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,36 @@
1-
# yaml-language-server: $schema=../../2024/04/bundled/outputs/config/get.vscode.json
1+
# yaml-language-server: $schema=../../v3.0/bundled/outputs/config/test.vscode.json
22
#
33
# Shows output from `dsc config get --path dsc/examples/osinfo_registry.dsc.yaml
44
#
55
metadata:
66
Microsoft.DSC:
7-
version: 3.0.0-preview.7
8-
operation: Test
9-
executionType: Actual
10-
startDatetime: 2024-04-16T15:31:15.556395700-05:00
11-
endDatetime: 2024-04-16T15:31:15.820044900-05:00
12-
duration: PT0.263649200S
13-
securityContext: Restricted
7+
version: 3.0.0
8+
operation: test
9+
executionType: actual
10+
startDatetime: 2025-05-09T11:57:46.868555-05:00
11+
endDatetime: 2025-05-09T11:57:47.837039900-05:00
12+
duration: PT0.9684849S
13+
securityContext: restricted
1414
results:
1515
- metadata:
1616
Microsoft.DSC:
17-
duration: PT0.061508200S
17+
duration: PT0.0402149S
1818
name: os
1919
type: Microsoft/OSInfo
2020
result:
2121
desiredState: {}
2222
actualState:
2323
$id: https://developer.microsoft.com/json-schemas/dsc/os_info/20230303/Microsoft.Dsc.OS_Info.schema.json
2424
family: Windows
25-
version: 10.0.22631
25+
version: 10.0.26100
2626
edition: Windows 11 Enterprise
2727
bitness: '64'
28+
architecture: x86_64
2829
inDesiredState: true
2930
differingProperties: []
3031
- metadata:
3132
Microsoft.DSC:
32-
duration: PT0.142056900S
33+
duration: PT0.1675133S
3334
name: windows product name
3435
type: Microsoft.Windows/Registry
3536
result:
@@ -45,7 +46,7 @@ results:
4546
differingProperties: []
4647
- metadata:
4748
Microsoft.DSC:
48-
duration: PT0.033704600S
49+
duration: PT0.0618466S
4950
name: system root
5051
type: Microsoft.Windows/Registry
5152
result:

schemas/examples/resource_manifest/foo.dsc.resource.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "../2024/04/bundled/resource/manifest.vscode.json",
2+
"$schema": "../../v3.0/bundled/resource/manifest.vscode.json",
33
"type": "Example/Resource",
44
"description": "An example resource using the schema.",
55
"version": "0.1.0",

schemas/examples/resource_manifest/foo.dsc.resource.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# For testing outside of the repository, set the schema in the yaml server directive to:
2-
# https://raw.githubusercontent.com/PowerShell/DSC/main/2024/04/resource/manifest.json
2+
# https://raw.githubusercontent.com/PowerShell/DSC/main/v3/resource/manifest.json
33
#
44
# Hover on the keys to see the documentation. Try changing values and adding new settings.
5-
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/bundled/resource/manifest.vscode.json
5+
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3/bundled/resource/manifest.vscode.json
66
type: Example/Foo
77
version: 0.1.0
88
description: An example resource to manage the foo application.

0 commit comments

Comments
 (0)