dagu icon indicating copy to clipboard operation
dagu copied to clipboard

Dagu YAML intellisense / JSON schema

Open fishnux opened this issue 3 years ago • 3 comments

Dagu YAML intellisense

Found this on a quick web search: https://joshuaavalon.io/intellisense-json-yaml-vs-code https://dev.to/brpaz/how-to-create-your-own-auto-completion-for-json-and-yaml-files-on-vs-code-with-the-help-of-json-schema-k1i

And hopefully in the future we could bring this to the code editor in the web UI

fishnux avatar Sep 09 '22 22:09 fishnux

Initial pull request has been made. The instructions for users to import this schema into their IDE is still undocumented. I'm not familiar with those procedures, so feel free to help 🙂

fishnux avatar Aug 26 '23 07:08 fishnux

Initial pull request has been made

@fishnux thank you for the schema. For all Jetbrains IDEs https://www.jetbrains.com/help/ruby/yaml.html#remote_json it also works.

aadrian avatar Aug 26 '23 08:08 aadrian

For Visual Studio code, you need to install YAML extension by Red Hat and add the following to your settings.json:

    "yaml.schemas": {
        "https://github.com/dagu-dev/dagu/raw/main/schemas/dag.schema.json": ["/dags/*", "dagu.yml", "dagu.yaml", "*.dagu.yml", "*.dagu.yaml"]
    }

fishnux avatar Oct 05 '23 23:10 fishnux