redhat-developer / redhat-developer/yaml-language-server
Matches multiple schemas when only one must validate
Open
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
- changed Kubernetes filetype from to *.k8s.yaml, that's all
Environment
- Windows
- Mac
- Linux
- other (please specify)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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