-
Notifications
You must be signed in to change notification settings - Fork 38
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
RangeError: Maximum call stack size exceeded #1197
Comments
Oh... I've just actually noticed that this seems to be related to the fact that the the commented-out type, Is there a workaround for cases like this? |
I assume this error is caused by the lack of support for recursive types mentioned at #1081? |
Hi @renatoathaydes, sorry for the delayed response. Yup its exactly what you assumed, Spot currently doesn't expect recursive types. |
Hello, is there any workaround for this issue while we wait for recursive support? |
Describe the bug
Running this command:
I get this error, once my model reaches a certain size (as it seems):
To Reproduce
Steps to reproduce the behavior:
Create the
api.ts
file:Run
spot generate --contract api.ts --language yaml --generator openapi3 --out build/
.It works fine... un-comment the few commented-out types in the example above and try again.
It will fail with the error mentioned above.
Expected behavior
It should not fail.
The text was updated successfully, but these errors were encountered: