Skip to content

fix(ref): root level refs to local schema doesn't try to resolve erronous paths anymore#211

Merged
dadav merged 4 commits intodadav:mainfrom
outofrange:fix/210-top-level-root-refs
Apr 14, 2026
Merged

fix(ref): root level refs to local schema doesn't try to resolve erronous paths anymore#211
dadav merged 4 commits intodadav:mainfrom
outofrange:fix/210-top-level-root-refs

Conversation

@outofrange
Copy link
Copy Markdown
Contributor

@outofrange outofrange commented Apr 14, 2026

Full disclosure:
Thank you for your test coverage, and your CLAUDE.md for making me hand this over to Copilot.

It also motivated me a bit to see that I still had this repo forked - happy to be able to open a Pull Request for this project again!
I think I made my first baby steps with go for helm-schema back around version 0.12.0, a while ago :)

Fixes #210

`/bin/bash` doesn't exist on all systems, like NixOS or other non FHS based setups
`/usr/bin/env bash` does
test_ref_properties works,
test_ref_toplevel doesn't (as reported in dadav#210)
handleSchemaRefs now recognizes that `#/...` refs don't reference other schemas,
and IsRelativeFile stops claiming that empty strings are actually relative paths (if someone would still ask)

handleSchemaRefs is the only caller of IsRelativeFile at the moment.
@dadav dadav merged commit 0092ff4 into dadav:main Apr 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

top-level refs to #/... throw "failed to read referenced schema file .: read .: is a directory"

2 participants