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 for issue #616 allOf fails to resolve RELATIVE ref #617

Merged
merged 1 commit into from
Jan 7, 2018

Conversation

EtonDoze
Copy link
Contributor

@EtonDoze EtonDoze commented Jan 7, 2018

Fix for Issue #616

Issue #616 arises due to an unchecked use-case where one external file is referenced with respect to the parent instead of the source where the reference is made.

Similar use-cases are handled correctly elsewhere but missed out in the case of ComposedModels. This issue is specific to ComposedModel only i.e. allOf.

The fix leverages existing join function to normalize and resolve the paths before sending it for processing the external definitions.

CC: @tzimisce012 based on previous commits in this area.

@gracekarina gracekarina self-requested a review January 7, 2018 21:38
@gracekarina gracekarina merged commit 0df9d6f into swagger-api:master Jan 7, 2018
@gracekarina
Copy link
Contributor

@EtonDoze thanks!

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.

None yet

2 participants