-
Notifications
You must be signed in to change notification settings - Fork 533
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
allOf fails to resolve RELATIVE ref #616
Comments
EtonDoze
changed the title
allOf fails to load RELATIVE ref
allOf fails to resolve RELATIVE ref
Jan 7, 2018
EtonDoze
added a commit
to EtonDoze/swagger-parser
that referenced
this issue
Jan 7, 2018
@gracekarina , its similar #604 but not same. |
gracekarina
added a commit
that referenced
this issue
Jan 7, 2018
Fix for issue #616 allOf fails to resolve RELATIVE ref
@EtonDoze please check out the merge, to close the ticket |
Closing it as its fixed via #617 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is an example
parent.json
models/
pet.json
models/
fancy_pet.json
Notice here that
pet.json
is referenced using relative path which is in the samemodels
folder.Issue: parser fails with error
java.lang.RuntimeException: Unable to load RELATIVE ref: ./pet.json
. This happens because thepet.json
is resolved RELATIVE toparent.json
instead offancy_pet.json
. I expect parser needs to resolvepet.json
w.r.t. to the origin i.e.fancy_pet.json
I have already found a fix for this issue and PR is on its way.
CC: @tzimisce012
The text was updated successfully, but these errors were encountered: