redhat-developer / redhat-developer/yaml-language-server

Matches multiple schemas when only one must validate

Open
#998 4 comments 10 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.5k
Forks
352
Avg merge
2d 7h
Merged PRs (30d)
11

Description

Describe the bug

I'm getting this error no matter what is the content of the file, the code works correctly but i'm getting an error.
I'm using Neovim, the autocompletion is working and everything

Expected Behavior

no error

Current Behavior

apiVersion: v1 # Error: Matches multiple schemas when only one must validate
kind: Deployment
metadata:
    ...

Steps to Reproduce

  1. changed Kubernetes filetype from to *.k8s.yaml, that's all

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report names no source file or test. First reproduce the diagnostic in a Kubernetes *.k8s.yaml file on Linux, then trace the language server's schema matching for the shown Deployment; done means valid content no longer reports "Matches multiple schemas when only one must validate."

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.