This little schema repo is now out of service.
If you want to use homebrew features of the schema, please do them last in each section you work with, that way you will get most out of the autocompletion for the non-homebrew specific features of the schema.
Example with optionalfeature
:
"optionalfeature": [
{
...
"featureType": [
"PB",
"IWM:W",
"hello"
],
...
}
]
instead of:
"optionalfeature": [
{
...
"featureType": [
"PB",
"hello",
"IWM:W"
],
...
}
]
Here the schema provides a list of official feature types that you can choose from, which will disappear once you write down a homebrew feature type.
Just modified the actual 5e.tools Schema to one that can be used in your editor.
- Download the folder with the schema
- Put it into a another folder in your VS Code Workspace
- Go to Settings and search for Schema
- Edit the settings.json for the JSON: Schemas setting
- Put this into your
"json.schemas"
array with your correct paths:
{
"fileMatch": [
"*.json"
],
"url": "./5etools-Homebrew-Schema/schema.json"
}
Every json file you make in this workplace folder now will use this schema.
If something's missing or wrong let me know on Discord.