You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dsc/docs-conceptual/dsc-3.0/concepts/enhanced-authoring.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,14 +10,14 @@ title: Authoring with enhanced schemas
10
10
# Authoring with enhanced schemas
11
11
12
12
Working with Microsoft's Desired State Configuration (DSC) platform involves writing DSC
13
-
[configuration documents][01] and [resource manifests][02]. Configuration documents are YAML or
14
-
JSON data files that declare the desired state of a system. Resource manifests are JSON or YAML
15
-
data files that define a DSC command resource.
13
+
[configuration documents][01] and [resource manifests][02]. Configuration documents are YAML or JSON
14
+
data files that declare the desired state of a system. Resource manifests are JSON or YAML data
15
+
files that define a DSC command resource.
16
16
17
17
DSC validates these data files with a JSON schema. While the schemas DSC uses for validation are
18
-
useful for authoring configuration documents and resource manifests, Microsoft also defines a set
19
-
of enhanced schemas for authoring the files in VS Code. These schemas define extra keywords
20
-
specific to VS Code that:
18
+
useful for authoring configuration documents and resource manifests, Microsoft also defines a set of
19
+
enhanced schemas for authoring the files in VS Code. These schemas define extra keywords specific to
20
+
VS Code that:
21
21
22
22
- Improve the contextual help when hovering on or selecting a property in the data file.
23
23
- Add contextual help for enum values.
@@ -30,14 +30,14 @@ specific to VS Code that:
30
30
>
31
31
> These schemas are only for improving the authoring experience. If you try to validate the
32
32
> configuration document or resource manifest with a tool that doesn't support the extended
33
-
> vocabulary, the tool may raise an error.
33
+
> vocabulary, the tool might raise an error.
34
34
>
35
35
> The enhanced schemas share the same source definition as the canonical schemas and validate the
36
36
> data in the same way. However, they include non-canonical keywords. For maximum compatibility
37
37
> with other tools, the canonical schemas only use the core JSON schema vocabularies.
38
38
39
-
For the full list of recognized and supported schema URIs, including the enhanced authoring
40
-
schemas, see the `$schema` sections in [DSC Configuration document schema reference][03] and
39
+
For the full list of recognized and supported schema URIs, including the enhanced authoring schemas,
40
+
see the `$schema` sections in [DSC Configuration document schema reference][03] and
41
41
[DSC resource manifest schema reference][04].
42
42
43
43
## Enhanced schema examples
@@ -61,7 +61,7 @@ When possible, the hover help includes a link to the online documentation.
61
61
:::image-end:::
62
62
<!-- markdownlint-enable MD013 -->
63
63
64
-
When using IntelliSense while authoring with an enhanced schema, the quick info shown for the
64
+
When you use IntelliSense while authoring with an enhanced schema, the quick info shown for the
65
65
completion options displays as rendered Markdown. When possible, the quick info includes a link to
66
66
the online documentation.
67
67
@@ -97,19 +97,19 @@ snippets in VS Code.
97
97
98
98
<!-- markdownlint-disable MD013 -->
99
99
:::image type="complex" source="media/enhanced-authoring/error-messages.png" alt-text="This screenshot shows an enhanced error message for failed validation.":::
100
-
This screenshot shows a contextual error message when the name property for a resource instance doesn't match the validating regular expression. The value is the string 'invalid?' and the error message says "Invalid value for instance name. An instance name must be a non-empty string containing only letters, numbers, and spaces."
100
+
This screenshot shows a contextual error message when the name property for a resource instance doesn't match the validating regular expression. The value is the string 'invalid?' and the error message says "Invalid value for instance name. An instance name must be a nonempty string containing only letters, numbers, and spaces."
101
101
:::image-end:::
102
102
<!-- markdownlint-enable MD013 -->
103
103
104
-
When defining values, the enhanced schemas have contextual error messages instead of the default
105
-
error messages that JSON schema validation raises. This is particularly helpful for properties that
106
-
must match a regular expression, where the default message just indicates that the value is invalid
107
-
and lists the regular expression pattern.
104
+
When you define values, the enhanced schemas have contextual error messages instead of the default
105
+
error messages that JSON schema validation raises. These values are helpful for properties that must
106
+
match a regular expression, where the default message just indicates that the value is invalid and
107
+
lists the regular expression pattern.
108
108
109
109
## Using the enhanced configuration document schema
110
110
111
111
To associate every configuration document with the enhanced schema, add the following snippet to
112
-
your [settings.json] file in VS Code. You can define these options in your user settings or for a
112
+
your `settings.json` file in VS Code. You can define these options in your user settings or for a
113
113
specific workspace.
114
114
115
115
<!-- markdownlint-disable MD013 -->
@@ -154,9 +154,9 @@ when authoring configuration documents in JSON, you must define the schema assoc
154
154
155
155
## Using the enhanced resource manifest schema
156
156
157
-
To use the enhanced schema when authoring resource manifests, add the following snippet to
158
-
your [settings.json] file in VS Code. You can define this option in your user settings or for a
159
-
specific workspace.
157
+
To use the enhanced schema when authoring resource manifests, add the following snippet to your
158
+
`settings.json` file in VS Code. You can define this option in your user settings or for a specific
0 commit comments