Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix reading relative path file reference #2119

Closed

Conversation

dldl-cmd
Copy link
Contributor

@dldl-cmd dldl-cmd commented Feb 4, 2025

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
Copy link
Member

@baywet baywet left a comment

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 baywet deleted the branch microsoft:dev February 6, 2025 14:30
@baywet baywet closed this Feb 6, 2025
@baywet
Copy link
Member

baywet commented Feb 6, 2025

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
Contributor Author

dldl-cmd commented Feb 6, 2025

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

@baywet Of course no problem, here is the new PR: #2133

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants