Skip to content

VSCode warns about broken schema.json #6414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
halamix2 opened this issue Apr 30, 2025 · 0 comments
Closed
1 task done

VSCode warns about broken schema.json #6414

halamix2 opened this issue Apr 30, 2025 · 0 comments
Assignees
Labels
🐛 bug Something isn't working

Comments

@halamix2
Copy link

halamix2 commented Apr 30, 2025

Code of Conduct

  • I agree to follow this project's Code of Conduct

What happened?

When editing a config file, VSCode will highlight the "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", line with warnign message saying

$ref '/definitions/full_branch_path' in 'https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json' can not be resolved.

The error is caused by the

oh-my-posh/themes/schema.json

Lines 4982 to 4984 in a4ce145

"full_branch_path": {
"$ref": "#/definitions/full_branch_path"
},
reference, where the referred full_branch_path doesn't exist.

This reference was added in 98ac57a#diff-892c540c9bfebcb3bb8a0be1714201cd17eb6f0d40367c09f80d56e883b7335eR4982-R4984

Theme

any scheme will do

What OS are you seeing the problem on?

macOS

Which shell are you using?

powershell

Log output

not an `oh-my-posh` error really
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants