Skip to content

Nested arrays doesn't display object type in schema tabΒ #1114

Open
@dkeysil

Description

@dkeysil

Describe the bug

Nested array (array of arrays) wrongly displayed in schema tab. It shows just array[] type instead of [][]object

Expected behavior

array of arrays of objects with displayed type of object like this one (but this is simply array of objects):

Image

Current behavior

Image

also it's correctly displayed on the example tab:

Image

Steps to reproduce

Yaml example:

SwapData:
      type: object
      properties:
        slippage_bps:
          type: integer
          description: Slippage in basis points for the overall route
        routes:
          type: array
          description: Array of possible routes (each route is a sequence of steps)
          items:
            type: array
            items:
              $ref: "#/components/schemas/Step"
    Step:
      type: object
      properties:
        pool_address:
          type: string

Your Environment

node v23.9.0
"docusaurus-theme-openapi-docs": "^4.3.7"
"@docusaurus/core": "3.7.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions