redhat-developer / redhat-developer/vscode-yaml

Self-reference of schema files

Open
#805 2 comments 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

https://github.com/tats-u/vscode-yaml-bug

Expected Behavior

Self-reference does not occur in schema files.

Current Behavior

image

Steps to Reproduce

  1. Create a YAML schema
  2. Create a YAML using the schema and add # yaml-language-server: $schema=[the relative path of 1.] to the first line
  3. Open the schema that has been created in 1.

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

Start with the linked reproduction at https://github.com/tats-u/vscode-yaml-bug and reproduce the behavior on Windows using the schema and YAML steps in the issue. Trace how the relative $schema reference is resolved when the schema file itself is opened. Done means opening the schema no longer produces self-reference, while schema validation still works for the YAML file.

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
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.