Cannot resolve $ref when $ref points to a object within a same file. #494
Comments
It seems like you've run into whitlockjc/json-refs#80 |
EOW? So currently there is no other way then referencing to local definitions with url? |
EOW === "End of Week". The problem is due to a bug in |
Aaa ok :) Thanks for your work and fast response. I m looking forward to a next release of json-refs. Hope that in the next week it will be resolved. I'm gonna close that issue after update of |
Just ran into this bug, it has been fixed with json-refs 2.1.7. |
|
Weird, because it fixed it for me actually, didn't work for me @v2.1.6, worked @v2.1.7 |
That is super weird. :) |
Issue resolved by updating
Make sure to not use |
But this was also be fixed when |
You mean that |
I'm not sure yet, but I might be able to add a new initializer method that takes the necessary pieces of information to make it work right. The biggest part of |
I'm using code from @whitlockjc which perfectly resolves relative paths and I am really happy with it :)
There is only one problem when I define some schema in file /models/Article.yaml and then point to that schema using $ref in Article I receive an error. (except from swagger.yaml in which pointing to definitions resolves correctly)
Error message:
Article.yaml
I would highly appreciate your help with that issue.
Link to that issue
The text was updated successfully, but these errors were encountered: