Skip to content

Schema

The dash configuration schema is published here:

https://dlvhdr.github.io/gh-dash/configuration/gh-dash/schema.json

  1. Install the yaml-language-server LSP

  2. Follow the guide in nvim-lspconfig to set it up

  3. Add the following line to the top of your configuration file:

    # yaml-language-server: $schema=https://dlvhdr.github.io/gh-dash/configuration/gh-dash/schema.json

With the directive comment at the top of your configuration or the VS Code settings file, you can then open your configurations and edit them with support for validation. When you hover on an option in your configuration file, you’ll get a brief synopsis of the option and a link to its documentation on this site.

You can get edit-time feedback, validation, and IntelliSense for your configurations in VS Code by following these steps:

  1. Install Red Hat’s YAML extension for VS Code.

  2. Open your dash configuration file.

  3. Add the following line to the top of your configuration file:

    # yaml-language-server: $schema=https://dlvhdr.github.io/gh-dash/configuration/gh-dash/schema.json
  4. Instead of adding a comment to your configuration file, you could create the .vscode/settings.json file in your dash configuration folder and add this setting:

    {
    "yaml.schemas": {
    "https://dlvhdr.github.io/gh-dash/configuration/gh-dash/schema.json": "*.yml"
    }
    }