-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
$ref in $ref causes path hash to be repeated. #52
Comments
Ahh, I think I kind of understand how the path changes better now. And, according to the comment, I think we shall
|
Hey, I raised a PR for it. Let me know if it's more complicated than I thought. :) |
Thank you very much for the PR! Great catch! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, first of all, thanks for the great library. I think I spot an edge case bug when using it.
Here is the JSON file that I have simplified a lot to demo the problem.
And when I tried to bundle it
it generates output
As you can see, the 'definitions/top_level_node' is duplicated in
doc_node
. And I also did some debugging myself. It turns out that problem happens around hereI was trying to figure out what is the code doing here. My immature assumption is that
resolveIf$Ref
is checking if current object has a$ref
and if it has one, it will be resolved. However, one thing I don't understand is the reason behind thispath
updating. May be it has something todo with line here ? Can we not update the path?I understand you are busy and hope you could shed some light on this. I am happy to create a PR if you could understand the purpose of the path updating logic.
Cheers
The text was updated successfully, but these errors were encountered: