"layoutSelectors is undefined" when displaying the model of a request
See original GitHub issueQ&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.
To reproduce…
Steps to reproduce the behavior:
- Go to https://petstore.swagger.io/
- Click on ‘/pet Add a new pet’ (2nd endpoint)
- Click on ‘Model’ in the
Body
parameter - See error in console
Expected behavior
No error messages.
Screenshots
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:
- Created 3 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The fix for this issue will be in this week’s release.
Fixed in v. 3.32.2.