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

Extended glob matching for schema #39

Open
RouNNdeL opened this issue Apr 18, 2021 · 2 comments
Open

Extended glob matching for schema #39

RouNNdeL opened this issue Apr 18, 2021 · 2 comments

Comments

@RouNNdeL
Copy link

I'd like to apply the kubernetes schema to all yaml or yml file in a directory, but not files containing the word values, since these are Helm files and the schema does not apply. With extended glob this is very easy to accomplish: **/k8s/**/!(*values).+(yaml|yml)". It does not seem to be working with coc-yaml. Is there a way to accomplish this task?

@AnthonyPoschen
Copy link

looks like an upstream issue redhat-developer/yaml-language-server#422

@pslobo
Copy link

pslobo commented Jun 24, 2021

I was hoping/expecting that there would be some kind of ordered precedence so that I could do something like:

"yaml.schemas": {
    "kubernetes": "/*.yaml",
    "https://json.schemastore.org/kustomization": "/kustomization.yaml"
 }

Kubernetes for everything and has .yaml but then a specific filename such as kustomisation.yaml overrides the previous mach. Or better yet, takes precedence as it is more "specific".

Any way of doing this, or do we need to just wait for that upstream issue to be merged?

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

3 participants