-
Notifications
You must be signed in to change notification settings - Fork 194
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 not handled correctly? #627
Comments
Hi @jarmo, I created this notebook to reproduce the issue, I'm using The version of swagger UI used by https://editor.swagger.io/ does not show |
@zorbash thank you for your input! I tried my schema at https://editor.swagger.io/ too and it worked as expected - recursiveness was shown correctly! I suspect this means that the problem is not in What would be the best possible way to serve a different version of Swagger UI by Phoenix when it comes to |
There's doesn't seem to be a way to configure the swagger ui version in |
I would suggest using unpkg.com instead since it seems to be the "official" recommendation by SwaggerUI (/~https://github.com/swagger-api/swagger-ui/blob/HEAD/docs/usage/installation.md) so in this case |
Consider it done via PR #628 |
Hi! Thank you for this library.
I have a problem with describing a recursive schema, which looks something like this in the response JSON:
Basically it represents a tree of nodes of nodes of nodes...
I tried something like this (already figured it out that there's a need to use
Reference
instead of module itself to avoid compilation errors):This produces an output in the Swagger UI where everything seems to be correct except
Node.children
is shown as an array of anonymous objects, but nothing about it being array ofNode
.How should a relation like this be described so that Swagger UI would at least show the type of array elements for
children
property?The text was updated successfully, but these errors were encountered: