# Error: Too many levels of nesting to fake this schema

**URL:** <https://community.postman.com/t/error-too-many-levels-of-nesting-to-fake-this-schema/43681>\
**Category:** Help Hub\
**Tags:** collections, request, schema\
**Created:** [February 7, 2023, 2:13pm UTC](https://community.postman.com/t/error-too-many-levels-of-nesting-to-fake-this-schema/43681 "2023-02-07T14:13:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![declannolan](https://avatars.discourse-cdn.com/v4/letter/d/9dc877/32.png) [@declannolan](https://community.postman.com/u/declannolan)\
**Post date:** [February 7, 2023, 2:13pm UTC](https://community.postman.com/t/error-too-many-levels-of-nesting-to-fake-this-schema/43681/1 "2023-02-07T14:13:28Z")

</div>

I’m getting the following error in a POST request when I create a Collection from an OpenAPI definition I have created in Postman:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/6/6/663a39fe18e75e0a8aca2df6be3089304a62a1c8.png)

The ‘created\_on’ element in the screenshot is defined in the OpenAPI definition inside a structure of $refs which are 4 levels deep.

Is this behaviour correct? (It’s not apparent when I define the same OpenAPI spec in SwaggerHub). How can I workaround this so I don’t get this error?

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [February 7, 2023, 3:29pm UTC](https://community.postman.com/t/error-too-many-levels-of-nesting-to-fake-this-schema/43681/2 "2023-02-07T15:29:13Z")

</div>

Did you try and Google the issue?

Have a look at the following articles for potential work arounds.

[Error: Too many levels of nesting to fake this schema · Issue #10928 · postmanlabs/postman-app-support (github.com)](https://github.com/postmanlabs/postman-app-support/issues/10928)

[Reaching Stack Limit on Modest Schemas · Issue #306 · postmanlabs/openapi-to-postman (github.com)](https://github.com/postmanlabs/openapi-to-postman/issues/306)

---

<div class="post-metadata">

**Author:** ![declannolan](https://avatars.discourse-cdn.com/v4/letter/d/9dc877/32.png) [@declannolan](https://community.postman.com/u/declannolan)\
**Post date:** [February 7, 2023, 6:05pm UTC](https://community.postman.com/t/error-too-many-levels-of-nesting-to-fake-this-schema/43681/3 "2023-02-07T18:05:52Z")

</div>

Hi there, yes I did Google this issue before logging it on the Postman Community and found those two pages, but neither helped I’m afraid. One of them suggests disabling the “Optimize conversion” when creating a Collection but that didn’t work. The other seems to be referring to a “stackLimit” option but I can’t see how to change that in the Postman App where I’m managing my OpenAPI definition and associated Collections.
