-
Notifications
You must be signed in to change notification settings - Fork 154
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
Circular references should be allowed as per Swagger 2.0 API Spec. #62
Comments
There is a test case |
Another reference: swagger-api/swagger-codegen#728 |
I don't think developers are paying any more attention. You can get around this by first using json-refs (install from npm) to first resolve all refs, and then generate from the resulting json |
I believe I have a fix for both this issue and #57. I need to do some more testing on it as it changes a fundamental portion of the parser. |
On my own installation I edited parser.py at least to give some debugging information on the source of the circular reference to fix it. Giving a more meaningful error message helped me overcome this problem. Up for a pull request? |
I just wanted to add that the solution presented by Nicklas Møller Jepsen, solved the issues for me. I was working with scaffold entities (EF) with circular references and had the problem with freezing Swagger UI. |
I got a similar problem
this $ref not avivalid |
Other codegen tools support circular references. See swagger-api/swagger-codegen#728.
I this this issue with the following yml:
Exception:
The text was updated successfully, but these errors were encountered: