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: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,6 +179,14 @@ yaml.schemas: {
179
179
180
180
`yaml.schemas` allows you to specify json schemas that you want to validate against the yaml that you write. Kubernetes is an optional field. It does not require a url as the language server will provide that. You just need the keyword kubernetes and a glob pattern.
181
181
182
+
### Using `$schema` key to specify schema
183
+
184
+
Like [VSCode](https://code.visualstudio.com/Docs/languages/json#_mapping-in-the-json), specifying schema via `$schema` key at root is supported.
185
+
186
+
```
187
+
$schema: <urlToTheSchema>
188
+
```
189
+
182
190
### Using inlined schema
183
191
184
192
It is possible to specify a yaml schema using a modeline.
0 commit comments