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

How to disable validation for conda meta.yaml?

Open alanwilter opened this issue 3 years ago • 1 comments

Summary

Conda meta.yaml has some elements of jinja so this mix play havoc with yaml or jinja validation tools.

Relevant information

For example:

{% set data = load_setup_py_data() %}
{% set version = data.get('version')  %}

package:
  name: my_conda_app
  version: {{ version }}
...

vscode-yaml won't work on such file. How can I circumvent it? Or disable it? I tried to add an empty json schema or refer to itself, but I can't get rid to the problems messages.

# yaml-language-server: $schema=./meta.yaml

or

# yaml-language-server: $schema=./.empty_schema.json

where .empty_schema.json is just {}, won't work.

alanwilter avatar Dec 21 '21 23:12 alanwilter

I am facing the same issue. It seems related to https://github.com/redhat-developer/vscode-yaml/issues/245

hadim avatar Dec 16 '23 13:12 hadim