redhat-developer / redhat-developer/vscode-yaml
Self-reference of schema files
Open
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

Steps to Reproduce
- Create a YAML schema
- Create a YAML using the schema and add
# yaml-language-server: $schema=[the relative path of 1.]to the first line - Open the schema that has been created in 1.
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
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