Skip to content

Commit ed82ac4

Browse files
authored
Updated readme with more info on relative root
1 parent e4a92f6 commit ed82ac4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,25 @@ The following settings are supported:
3737
##### Associating a schema to a glob pattern via yaml.schemas:
3838
yaml.schemas applies a schema to a file. In other words, the schema (placed on the left) is applied to the glob pattern on the right. Your schema can be local or online. Your schema path must be relative to the project root and not an absolute path to the schema.
3939

40+
For example:
41+
If you have project structure
42+
43+
myProject
44+
45+
   > myYamlFile.yaml
46+
47+
you can do
48+
49+
```
50+
yaml.schemas: {
51+
"http://json.schemastore.org/composer": "/myYamlFile.yaml"
52+
}
53+
```
54+
55+
and that will associate the composer schema with myYamlFile.yaml.
56+
57+
## More examples of schema association:
58+
4059
When associating a schema it should follow the format below
4160
```
4261
yaml.schemas: {

0 commit comments

Comments
 (0)