Skip to content
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: Maximum call stack size exceeded #282

Open
gunnartorfis opened this issue Dec 19, 2021 · 0 comments
Open

Recursive schema: Maximum call stack size exceeded #282

gunnartorfis opened this issue Dec 19, 2021 · 0 comments

Comments

@gunnartorfis
Copy link

I'm using this library for mocking in a React Native application along with MSW.

When using the openapi-backend on operations that don't return recursive response schemas, the library works flawlessly. However, when I'm mocking an endpoint that returns recursive data, I get the error RangeError: Maximum call stack size exceeded.

Is there some configuration I need to set to limit the mocking? Like with x-json-schema-faker, we have the maxItems property set to 2:

openapi: 3.0.2
x-json-schema-faker:
  maxItems: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant