question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"layoutSelectors is undefined" when displaying the model of a request

See original GitHub issue

Q&A (please complete the following information)

  • OS: Windows
  • Browser: Chrome
  • Version: 84
  • Method of installation: local build
  • Swagger-UI version: 3.32.1
  • Swagger/OpenAPI version: Swagger 2.0

Content & configuration

Happens with any configuration

Describe the bug you’re encountering

I was working on trying to fix a performance issue in Swagger when I noticed a console error unrelated to my changes. You can reproduce the error simply by clicking on the ‘model’ of a request.

image

To reproduce…

Steps to reproduce the behavior:

  1. Go to https://petstore.swagger.io/
  2. Click on ‘/pet Add a new pet’ (2nd endpoint)
  3. Click on ‘Model’ in the Body parameter
  4. See error in console

Expected behavior

No error messages.

Screenshots

image

Additional context or thoughts

I have not been able to reproduce the issue with V3.31.1 so this error must have been introduced recently.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
tim-laicommented, Aug 18, 2020

The fix for this issue will be in this week’s release.

1reaction
hkosovacommented, Aug 19, 2020

Fixed in v. 3.32.2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Swagger - Cannot read property 'get' of undefined
... about existing API using swagger, but when i use openapi, this error: Cannot read property 'get' of undefined is displayed into console....
Read more >
share/swagger-ui.js.map - metacpan.org
src/core/plugins/oas3/components/request-body-editor.jsx","webpack://SwaggerUICore/. ... src/core/components/object-model.jsx","webpack://SwaggerUICore/.
Read more >
yiifilemanagerfilepicker | Extensions | Yii PHP Framework
Now, suppose you doesnt require a launch icon, so put Nothing in the 'launch_selector' widget attribute, this cause the widget to display ......
Read more >
swagger-ui: Versions - Openbase
Model descriptions now support Markdown (see #3236); Composite models now display their own name more reliably (see #3250); Pretty-print response example values ...
Read more >
swagger-ui @ 3.22.1 .. 3.22.2 - Package Diff
isImmutable=undefined;var _stringify=__webpack_require__(30);var ... __proto__||(0,_getPrototypeOf2.default)(Model)).call.apply(_ref,[this].concat(args))) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found