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 spago.yaml to Schema Store #1144

Open
JordanMartinez opened this issue Dec 19, 2023 · 1 comment
Open

Add spago.yaml to Schema Store #1144

JordanMartinez opened this issue Dec 19, 2023 · 1 comment

Comments

@JordanMartinez
Copy link
Contributor

JordanMartinez commented Dec 19, 2023

See https://www.schemastore.org/json/ but this would add autocomplete support in VS Code.

Probably best to do this once spago's configuration becomes stable.

@cakekindel
Copy link
Contributor

Would there be value in adding a json schema file in the repo? ex.

/spago.yaml.schema.json

{
  "type": "object",
  "properties": {
    "workspace": ..
    ...
  }
}

It would add a little maintenance burden, since changing the schema in code would also have to be reflected in the schema file, but could add the autocomplete immediately for people who want to add something like this to their spago.yaml:

# yaml-language-server: $schema=https://github.com/purescript/spago/master/spago.yaml.schema.json
workspace:
  buildOpts:
    censorLibraryWarnings: all
  packageSet:
    registry: 58.0.0

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

No branches or pull requests

2 participants