You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered a "Maximum call stack size exceeded" error when using the zod plugin with a recursive schema. The issue appears to be related to the order of schema definitions in the openapi.yaml file.
Steps to Reproduce:
Define schemas in openapi.yaml in the order A → B.
Run the build process.
The build fails with the "Maximum call stack size exceeded" error.
Workaround: Reordering the schema definitions to B → A allows the build to succeed.
Description
Hi @mrlubos,
I've encountered a "Maximum call stack size exceeded" error when using the zod plugin with a recursive schema. The issue appears to be related to the order of schema definitions in the openapi.yaml file.
Steps to Reproduce:
Workaround: Reordering the schema definitions to B → A allows the build to succeed.
Other plugins work
Please let me know if more details are needed.
Reproducible example or configuration
OpenAPI specification (optional)
Failing:
Working:
System information (optional)
@hey-api/openapi-ts: v0.64.4
node: v20.18.1
The text was updated successfully, but these errors were encountered: