redoc icon indicating copy to clipboard operation
redoc copied to clipboard

Problem with Array of Array

Open eitan101 opened this issue 8 years ago • 8 comments

I think that array of array are not handled correctly. The wrapping array is ignored while drawing the schema, while the sample is rendered correctly.

Here is a yaml example with two cases:

      responses:
        '200':
          description: array of array at root level
          schema:
            type: array
            items:
                type: array
                items:
                    type: object
                    properties:
                        name:
                            type: string
                        age:
                            type: integer
        '201':
          description: object of array of array
          schema:
            type: object
            properties:
                myArray: 
                    type: array
                    items:
                        type: array
                        items:
                            type: string

eitan101 avatar Mar 17 '17 14:03 eitan101

screen shot 2017-03-17 at 17 00 35 screen shot 2017-03-17 at 17 01 46 screen shot 2017-03-17 at 17 01 54

eitan101 avatar Mar 17 '17 15:03 eitan101

hey @eitan101. Thanks for reporting.

Will be fixed soon

RomanHotsiy avatar Mar 20 '17 15:03 RomanHotsiy

Hey @RomanGotsiy, thanks for an amazing tool. Regarding this bug, I tried to fix it by myself, but It involved to many changes so I chose to wait for your fix :)

Do you know by any chance when is it going to be fixed? I want to know if to wait for it or try to find other workaround as midterm solution.

Thanks again,

eitan101 avatar Apr 04 '17 04:04 eitan101

hey @eitan101. Sorry for long response. Right now I'm busy with other things so I can't promise when it will be fixed. I will try to fix this on the following weekends. If I don't manage, I will let you know.

RomanHotsiy avatar Apr 12 '17 10:04 RomanHotsiy

This still hasn't been fixed.... :( Arrays of objects/arrays inside a parent object are things I incorporate often, and it being not able to expand in the docs is a big pain.

FoxInFlame avatar Apr 30 '18 04:04 FoxInFlame

Is there a chance this issue will be fixed any time soon?

valasatava avatar Nov 24 '20 00:11 valasatava

OMH 😳

So many years have passed, and the problem still hasn't been solved! 🤦‍♂️

JohnyDNU avatar May 12 '25 07:05 JohnyDNU

@JohnyDNU you are welcome to open a PR 🙏

RomanHotsiy avatar May 12 '25 07:05 RomanHotsiy