-
Notifications
You must be signed in to change notification settings - Fork 506
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
Swagger UI crashes when circular model defined #190
Labels
Comments
Just in case someone is looking for a quick fix. I follow @miszczu suggestion and patch the
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have defined following circular model in my API:
Marshalling such model with api.marshal_with works ok, but app crashes when I try to open swagger documentation:
Swagger 2.0 accepts circular (recursive) models, so I think this library should handle such cases.
Quick fix could be to just check if model is already registered in Swagger.register_model method.
I am using 0.9.2 version
The text was updated successfully, but these errors were encountered: