Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add devenv.schema.json for devenv.yaml #598

Closed
wants to merge 1 commit into from

Conversation

bobvanderlinden
Copy link
Contributor

Currently devenv.yaml doesn't have autocompletion or a schema. Whenever an editor supports the yaml language server it is possible to add schema information using # yaml-language-server: $schema=.

This adds a JSON schema for devenv.yaml. It should be hosted on https://devenv.sh/devenv.schema.json

The schema url is used in the simple example's devenv.yaml.

For devenv.yaml in the root of devenv I added the line, but referring to the devenv.schema.json in the same repo. This should already work regardless of whether the schema is published on devenv.sh already.

@shyim
Copy link
Contributor

shyim commented May 28, 2023

After merge we should adjust https://github.com/SchemaStore/schemastore/blob/master/src/api/json/catalog.json so it works in most editors out of the box :)

@bobvanderlinden
Copy link
Contributor Author

After merge we should adjust https://github.com/SchemaStore/schemastore/blob/master/src/api/json/catalog.json so it works in most editors out of the box :)

I wasn't aware! Great idea 😄👍

@domenkozar
Copy link
Member

For #1005 we have a way to generate this from the types, but it's blocked on moonrepo/schematic#105

@domenkozar
Copy link
Member

#1169 generates it now :)

@domenkozar domenkozar closed this Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants