A JSON schema detailing the Glance config file.
Warning
Currently represents version: v0.8.4. For newer versions of Glance, splitting up large config files using $include is recommended. This schema cannot currently work to validate split config files, but support is planned.
For custom usage, the schema link can be found at https://raw.githubusercontent.com/not-first/glance-schema/master/schema.json.
If you use VS Code to edit your glance.yml, the schema can be used to provide typing completions, hover descriptions and incorrect configuration errors.
- Install the YAML extension.
- At the top of your
glance.ymlfile, add this line:# yaml-language-server: $schema=https://raw.githubusercontent.com/not-first/glance-schema/master/schema.json - Done.
Some error messages can be autogenerated by the schema validator and are unhelpful in figuring out what is wrong. These can be customised in the schema once they are located, so please create an issue if you experience one.