redhat-developer / redhat-developer/vscode-yaml

schema path evaluated aggressively

Open
#479 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
829
Forks
260
Avg merge
5h 43m
Merged PRs (30d)
1

Description

Describe the bug

.vscode/settings.json:

{
  "yaml.schemas": {
    "./schema1.json": ["**/some-folder/**/*.yaml"],
    "./schema2.json": ["**/some-folder/*.yaml"]
  }
}

Expected Behavior

The file ./packages/some-folder/abc/x.yaml should be validated against schema1.json only.

Current Behavior

It is validated against schema1.json and schema2.json

Environment

  • Windows

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

Start with the .vscode/settings.json example and reproduce validation for ./packages/some-folder/abc/x.yaml on Windows using the two YAML schema patterns. Trace how the yaml.schemas paths are matched, and consider the issue done when that file is validated against schema1.json only.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.