redhat-developer / redhat-developer/vscode-yaml

yaml.schemas not working with private repos raw url

Open
#657 1 comment 1 reaction 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

Summary

I want to refer the yaml.schemas with a github file which is in a private repo . Typically private repo raw content url comes with a token . If i use the url with a token it fails https://raw.githubusercontent.com/org/repo/master/schema.json?token=xxxxxxxxxxxxxx . Basically url with any special character fails to load ... can you please let me know if there is any other way

error log

Unable to load schema from '': Request vscode/content failed unexpectedly without providing any details.

fortunately this works if I set in
yaml-language-server: $schema= privaterepo with token

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 by reproducing the yaml.schemas failure with a private GitHub raw URL containing a token, then compare it with the yaml-language-server $schema setting that currently works. Trace the URL-loading entry point and determine how special characters are handled; done means tokenized private-repository URLs load successfully through yaml.schemas without regressing ordinary schema URLs.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.