Skip to content

Conversation

@gracekarina
Copy link
Contributor

@gracekarina gracekarina commented May 29, 2018

refs #727

@gracekarina gracekarina requested a review from frantuma May 29, 2018 08:24

} else {
//its assumed to be a relative file ref
final Path pathToUse = parentDirectory.resolve(file).normalize();
Copy link
Contributor

@JehandadK JehandadK Aug 2, 2018

Choose a reason for hiding this comment

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

Should this parentDirectory be the directory of where the file containing $ref exists or the directory of the main file which is read first by the Parser?

I am asking this because this seems to be the behavior of swagger-ui. And to make my swagger spec work with both I had to use links.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

is the directory where the file is

@gracekarina gracekarina merged commit 82e0008 into 2.0 Aug 9, 2018
@gracekarina gracekarina deleted the OAS3-relative-resolving branch October 18, 2018 20:55
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.

5 participants