Skip to content
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

Fix refs with relative paths pointing outside current dir #314

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

ahx
Copy link
Owner

@ahx ahx commented Jan 16, 2025

This fixes resolving refs like '../a/b.json'.

The main issue here was that URI.join(base_uri, other), which is called inside json_schemer, needs a path ending with a slash otherwise it does not treat the dirname as a path fragment.

Related to #313

This fixes resolving refs like '../a/b.json'.
The main issue here was that `URI.join(base_uri, other)` (called inside json_schemer) needs a path ending with a slash otherwise it does not treat the dirname as a path fragment.
@ahx ahx force-pushed the fix-ref-resolver-relative-paths branch from 47ff023 to b23206e Compare January 16, 2025 13:27
@ahx ahx merged commit 6bb90d4 into main Jan 16, 2025
32 checks passed
@ahx ahx deleted the fix-ref-resolver-relative-paths branch January 16, 2025 16:26
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.

1 participant