-
Notifications
You must be signed in to change notification settings - Fork 64
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
Bug in resolving many local reference on a document of remote reference #93
Comments
This "crazy code" is being cleaned up but can you tell me what version of json-refs you're using? |
I think is the last! "json-refs": "^2.1.6" Note: "Crazy Code" is a light joke in my country ... sorry if I offended. I spoke in order to indicate that is very complex code for me. Recursion, I'm in ... but detect circular references should not be an easy task. |
No offense taken. I am in the process of cleaning it up a little, more for performance than anything. Let me see if I an figure out what is up with your situation. |
Reproduced here: #95 |
This is a duplicate of #80. |
@whitlockjc I think this is a different issue, since #80 happens only when restricting to resolve non-local references (i.e. with parameters -I relative -I remote), but this happens without using filters. |
I think the steps to reproduce #80 used filters but the problem is a general one. If you resolve only a portion of a remote document (Example: |
And sorry for the places where I'm commenting that this is fixed locally. Basically, I've rewritten the resolution code locally to not only fix this issue (and more) but also to fix performance described in #87. The thing is it's a lot of work and I've got a good bit of local changes that fix things like this and #97 but it's not done so there's no commits on I will be working on this over the next few days and hopefully fixing all outstanding issues around circular references, external references and performance. |
@whitlockjc ok, I understand. Thank you! :) |
@whitlockjc any update on this? please tell me if there's anything I can do to help. |
I could not understand why occurs that... but here is the case.
PS: you could make a flow chart explaining what happens in this crazy code 😄
/public/MainDoc.yml
/public/ReferredDoc.yml
Result:
Here a code that simule the case:
https://github.com/flaviolsousa/validate-model-swagger-web
You need see this files:
This problem in one of my documents occurs 19 times.
I am available to help them in what was needed.
Thanks in advance!
The text was updated successfully, but these errors were encountered: