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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

"馃槺 Could not render n, see the console." when providing nested lists. #6326

Closed
reder9 opened this issue Aug 19, 2020 · 3 comments 路 Fixed by #7007
Closed

"馃槺 Could not render n, see the console." when providing nested lists. #6326

reder9 opened this issue Aug 19, 2020 · 3 comments 路 Fixed by #7007

Comments

@reder9
Copy link

reder9 commented Aug 19, 2020

Environmental information:
I'm running this out of the swaggerapi/swagger-ui:v3.32.2 image
Using "openapi": "3.0.3",

Problem:
I have the following parameter that I would like to display in my swagger api doc page. The first one displays fine since its a simple list but the second has problems since it is a nested list:

      "parameters": [
          {
            "name": "simple_list",
            "in": "query",
            "description": "Just a list of ints",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
               "type": "integer",
               "format": "int32"
               }
             }
          },
          {
            "name": "nested_list",
            "in": "query",
            "description": "List of list of ints",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
               "type": "array",
               "items": {
                  "type": "integer",
                  "format": "int32"
               }
              }
            }
          }
        ],

As seen in this screenshot when I try to add an element to the nested lists I get 馃槺 Could not render n, see the console.
Screen Shot 2020-08-19 at 10 40 59 AM

From what I can see I'm providing the nested array properly according to https://swagger.io/docs/specification/data-models/data-types/

Please let me know if theres any other information I can provide

@acote-coveo
Copy link

@reder9 You probably have console errors that you could share here :)

@swasical
Copy link

Any resolution on this? I have the same error. The console error I see is:

swagger-ui-bundle.js:2 TypeError: a.getIn is not a function
at n.value (swagger-ui-bundle.js:2)
at n.I.t.render (swagger-ui-bundle.js:2)
at u._renderValidatedComponentWithoutOwnerOrContext (swagger-ui-bundle.js:2)
at u._renderValidatedComponent (swagger-ui-bundle.js:2)
at u._updateRenderedComponent (swagger-ui-bundle.js:2)
at u._performComponentUpdate (swagger-ui-bundle.js:2)
at updateComponent (swagger-ui-bundle.js:2)
at u.receiveComponent (swagger-ui-bundle.js:2)
at Object.receiveComponent (swagger-ui-bundle.js:2)
at Object.updateChildren (swagger-ui-bundle.js:2)

@mathis-m
Copy link
Contributor

mathis-m commented Feb 27, 2021

valid minimal reproduction yaml:
https://editor.swagger.io/?url=https://gist.githubusercontent.com/mathis-m/77c8c182d56c502d1d9872f5915f3586/raw/68514168d7df620d81a32ef7c4304bf0b3886294/i2aBmDtqYU.txt

openapi: 3.0.3
info:
  title: asd
  version: 0.0.1
paths:
  /test:
    get:
      parameters:
      - name: nested_list
        in: query
        description: List of list of ints
        schema:
          type: array
          items:
            type: array
            items:
              type: integer

      responses:
        200:
          description: ok

@mathis-m mathis-m mentioned this issue Feb 27, 2021
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants