Skip to content

Fix reading relative path file reference - #2119

Closed
dldl-cmd wants to merge 2 commits into
microsoft:devfrom
dldl-cmd:fix_referenceWithFolderLoading
Closed

Fix reading relative path file reference#2119
dldl-cmd wants to merge 2 commits into
microsoft:devfrom
dldl-cmd:fix_referenceWithFolderLoading

Conversation

@dldl-cmd

@dldl-cmddldl-cmd commented Feb 4, 2025

Copy link
Copy Markdown
Contributor

A reference like ./Directory/File.json#/components/schema/abc was before read as:
refId = abc
externalResource = ./Directory

Which dropped the file name, which will be fixed by this commit

This fix will help the issue #1674 to get fixed.

A reference like ./Directory/File.json#/components/schema/abc was before read as:
refId = abc
externalResource = ./Directory
Which dropped the file name, which will be fixed by this commit

@baywetVincent Biret (baywet) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

Can you please add unit tests so we don't get any future regression?

@baywet

Copy link
Copy Markdown
Member

sorry for the closure, we changed the branching to align with other repositories. Can you also re-open the pull request to main please?

@dldl-cmd

Copy link
Copy Markdown
ContributorAuthor

sorry for the closure, we changed the branching to align with other repositories. Can you also re-open the pull request to main please?

Vincent Biret (@baywet) Of course no problem, here is the new PR: #2133

Sign up for freeto 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.

3 participants

@dldl-cmd@baywet@MaggieKimani1