-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
Recursive schema reference errors #45
Comments
I've built a webpack bundle from I don't suppose you have a short repro test case you could share? Thanks for reporting! |
Wow! Thanks for the quick response.
Here is a sample with multiple recursive references. Let me know if that
helps.
Cheers!
|
Not sure if the sample will come through on my email reply. Here it is again just in case. |
Ok, it was the It would be great if you could retest and confirm the crash is gone. |
Hi Mike, It loads now without any recursion errors. But any object that gets opened up, the $ref paths get all messed up now when downloading the schema after viewing it in the jsonEditor. See the User component in the schema below. The $ref on properties of the User components are now "#/items/oneof/...." instead of "#/components/..." Thanks again for looking into this recursion issue! |
OK, I've moved the 'fix' to another branch and reverted it on |
Loving the openapi-gui so far and would like to use it, but some of my schemas have recursive references at the child level and at the grandchild level. This causes callstack errors in Chrome and "too many recursion" errors in Firefox when clicking a schemas edit icon.
Any chance you can add in child schema tracking to detect recursion and render recursive schema children, grandchildren, etc... with a placeholder like they do in redoc?
Thanks!
The text was updated successfully, but these errors were encountered: