Add jsonschema for config.toml
I'd like to have a schema for the configuration file so it's possible to have intellisense help with the config file.
The documentation is here https://www.schemastore.org/json/
That's a good idea, is this something you would like to contribute with? Probably will need to follow the changes like in this PR https://github.com/SchemaStore/schemastore/pull/3214/files
Marking this issue as wishlist
On it (as in: already started). Unless someone beats me to it first.
On it (as in: already started). Unless someone beats me to it first.
Ok — pretty sure I've got the schema done.
Giving it a once-over for any bugs, or if I've missed any configuration options. I think I may have to clean up the sub-sections and some arrays, but validation works as expected for now.
- I've validated the
config.tomlusing the created json schema on the cli, using taplo, - which is used by "Even Better TOML" in VSCode|ium... but the LSP seems to be currently broken in VSCodium, so can't test hinting and suggestions|autocompletion.
More to come. I'll pop the schema in the repo/fork shortly. (see below)
Update:
- most recent version here: github/LaurentFough/rio.../rio-spec.json