-
-
Notifications
You must be signed in to change notification settings - Fork 132
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 is not rendering #351
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue. |
@kchaber Hello! Thanks for reporting the issue! We know about this bug, for more info check asyncapi/parser-js#293 If we will support the recursive schemas in every place in spec (at the moment we only support in properties) then supporting in component will be very easy. |
@magicmatatjahu what do you mean we support it in properties only? arrays too. This file works well with HTML template before migration to react |
Yes, but as I described in this issue asyncapi/parser-js#293 (with example) circular refs in items aren't handled properly, so supporting in component is disabled. In most cases this will result in a wrong rendered schema. |
not sure what you mean by I'm not saying the bug is not there, it is there and your example shows it pretty nice, I totally agree with you. On the other hand though, Technically what's the problem to support current parser functionality? I mean why not enabling it now and support |
@kchaber Issue is fixed in |
Thanks a lot! Looks ok now 🙂 |
Description
Schema which contains some recursive items does not render and the console logs present some StackOverflow exceptions.
Expected result
Schema with recursive items should render correctly.
Steps to reproduce
To reproduce this issue you can use the following schema where
RecursiveItem
schema contains list ofsubItems
of typeRecursiveItem
.Tested on both versions:
0.23.1
and1.0.0-next-3
The text was updated successfully, but these errors were encountered: