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

yaml.selectSchema command should have "no schema" as an option #59

Open
jackieli-tes opened this issue Mar 30, 2022 · 5 comments
Open
Labels
enhancement New feature or request

Comments

@jackieli-tes
Copy link

Quite often than not, automatic schema selection selections the wrong schema and errors littered every where. yaml.selectSchema action should provide a "no schema" option

@chemzqm chemzqm added the enhancement New feature or request label Mar 31, 2022
@stanislav-zaprudskiy
Copy link

In the meantime, is there a way to set "no schema" manually, without disabling the schema store or coc-yaml?

@simnalamburt
Copy link

@stanislav-zaprudskiy Here you are:

"yaml.schemas":{
  "https://gist.githubusercontent.com/simnalamburt/2c3263b783ed3f4471bda9ca901bb69f/raw/9c2cd17d6f4683cf80b6360a2d53b33fd49556d7/allow-all-json-schema.json": "/*"
},

It uses accept-all json schema as default schema.

@luisdavim
Copy link

Is there a way to disable this extension based on file type?

@lmburns
Copy link

lmburns commented Jan 3, 2023

Perhaps there could be something added to a file like any of the following to support the 'no schema' files:

# yaml-language-server: $schema=none
# yaml-language-server: $schema=nil

@luisdavim
Copy link

luisdavim commented May 18, 2024

This could help #78 and use https://github.com/mrjosh/helm-ls for helm charts instead of the yaml-language-server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants