-
-
Notifications
You must be signed in to change notification settings - Fork 2
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 protobuf schema causes stackoverflow #76
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. |
Your example will now parsed like: After #77 is merged |
@GreenRover Thanks a lot! |
🎉 This issue has been resolved in version 3.2.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe the bug
Recursive messages cause stackoverflow.
How to Reproduce
Define a protobuf schema with a recursion, e.g.
It will throw a
Error thrown during AsyncAPI document parsing. Name: RangeError, message: Maximum call stack size exceeded, stack: RangeError: Maximum call stack size exceeded\n at Type.lookupTypeOrEnum
Expected behavior
Don't break. Even if it means recursive functions are not displayed properly in the generated docs, but it shouldn't make an asyncapi definition unusable, because certain things require such recursive protobuf messages
The text was updated successfully, but these errors were encountered: