vscode-yaml icon indicating copy to clipboard operation
vscode-yaml copied to clipboard

Allow to disable schema validation for certain file patterns

Open hadim opened this issue 1 year ago • 3 comments

Some YAML files are valid but cannot be validated using a regular YAML schema because they contain jinja content, for example.

It makes it quite annoying to work with YAML file with VSCode and no real alternatives YAML plugin and LS exist so far.

For background, I have collected a few related GH issues:

  • https://github.com/redhat-developer/vscode-yaml/issues/665
  • https://github.com/redhat-developer/vscode-yaml/issues/245
  • https://github.com/redhat-developer/vscode-yaml/issues/298
  • https://github.com/redhat-developer/yaml-language-server/issues/220
  • https://github.com/redhat-developer/vscode-yaml/issues/812

I can see two options to fix that:

  • Option 1: "somehow" allows the YAML validator to either validate or ignore jinja content.
  • Option 2: allow a user to disable YAML validation in VSCode for specific files or file patterns.

hadim avatar Dec 16 '23 13:12 hadim

Is there any option on the plugin to stop highlighting of jinja as an error ?

terekete avatar Feb 26 '24 15:02 terekete

this would be highly desirable.

debuggerpk avatar May 19 '24 16:05 debuggerpk