Skip to content

Commit 834c236

Browse files
committed
Fix documentation of yaml.schemas setting
You can use a single glob or an array of globs. I've updated the documentation and JSON Schema to reflect this. Fixes #1207 Signed-off-by: David Thompson <davthomp@redhat.com>
1 parent 8441e86 commit 834c236

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

package.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,20 @@
122122
"type": "object",
123123
"default": {},
124124
"additionalProperties": {
125-
"type": "string",
126-
"markdownDescription": "- **Key**: The path or URL of the schema to use\n- **Value**: A glob pattern specifying which files the schema should be used on"
125+
"anyOf": [
126+
{
127+
"type": "string"
128+
},
129+
{
130+
"type": "array",
131+
"items": {
132+
"type": "string"
133+
}
134+
}
135+
],
136+
"markdownDescription": "- **Key**: The path or URL of the schema to use\n- **Value**: A glob pattern or list of glob patterns specifying which files the schema should be used on"
127137
},
128-
"markdownDescription": "Associate schemas to YAML files in the current workspace. The expected value of this configuration option is a string to string map:\n- **Key**: The path or URL of the schema to use\n- **Value**: A glob pattern specifying which files the schema should be used on"
138+
"markdownDescription": "Associate schemas to YAML files in the current workspace. The expected value of this configuration option is a string to string map:\n- **Key**: The path or URL of the schema to use\n- **Value**: A glob pattern or list of glob patterns specifying which files the schema should be used on"
129139
},
130140
"yaml.kubernetesCRDStore.enable": {
131141
"type": "boolean",

0 commit comments

Comments
 (0)