Forum Discussion

weirdo's avatar
weirdo
Occasional Visitor
3 years ago

Lots of nesting levels in the response sample [OpenAPI]

Hi,

 

Has anyone had a problem with the nature of object nesting in the answer example (openAPI documenation)?

 

I have a json that has in general this structure:

 

 

 

{
    "1": {
        "2": {
            "3": {
                  "4": {
                        "5": {
                              "6": {
                                   "7": {
                                        "8": "test"
                                    }
                               }
			}
		}
	  }
      }
   }
}

 

 

 

My problem is that when generating documentation, the last nesting level is with null values, and I have them specified. When I break the schema into smaller values they appear. It looks like there is some kind of nesting limitation problem and only a finite number is possible. Do you have any leads?

No RepliesBe the first to reply