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

Issue-1891: Fix for mixed folder and classpath references not resolving. #1892

Merged
merged 1 commit into from
Mar 14, 2023

Conversation

douglasbgray
Copy link

This is a fix for #1891

Normally, in order to properly test resolving a reference with an absolute path, I would need access to a jar that can be read by the class loader. However, by using folders, I was able to simulate this by placing the file that is referred to in the contract outside of the directory in which the rest of the test resources are located. This causes the ClasspathHelper to be used to resolve the absolute reference and the test passes as desired.

Also verified that if I remove the change to ExternalRefProcessor that the test fails, so I know the branch in the updated code is being executed by the test.

Copy link
Contributor

@gracekarina gracekarina left a comment

Choose a reason for hiding this comment

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

thanks so much for this PR!.

@gracekarina gracekarina merged commit 5d34287 into swagger-api:master Mar 14, 2023
@douglasbgray
Copy link
Author

Thanks @gracekarina for accepting and merging.

@gracekarina gracekarina self-assigned this Mar 15, 2023
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.

2 participants