Swagger-ui minified not displaying part of Responses
See original GitHub issueQ&A (please complete the following information)
- OS: macOS
- Browser: chrome, safari, firefox, …
- Version: latest
- Method of installation: npm
- Swagger-UI version: 3.17.3
- Swagger/OpenAPI version: Swagger 2.0
Content & configuration
I have a frontend app using Vue.js (2.5.16) along with vie-cli 3.0 (webpack 4) and swagger-ui (3.17.3): https://github.com/ricardodejuan/vue_swaggerui
The same problem with vue-cli 2.0: https://github.com/ricardodejuan/vue_swaggerui_webpack2
When I run in localhost the entire definition is displayed correctly, but when i create the version to production (npm run build) and I am deploying on Pivotal Cloud Foundry using the staticbuildpack I cannot see the Example value or Model inside of the black boxes (see screenshots below)
Swagger/OpenAPI definition: https://petstore.swagger.io/v2/swagger.json
Swagger-UI configuration options:
import SwaggerUIBundle from 'swagger-ui'
import 'swagger-ui/dist/swagger-ui.css'
SwaggerUIBundle({
url: 'https://petstore.swagger.io/v2/swagger.json',
dom_id: '#swagger-ui',
deepLinking: false,
presets: [
SwaggerUIBundle.presets.apis
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
]
})
Screenshots
How can we help?
I don’t know if the issue is a conflict when I am minifying the app or i am missing any configuration. I have the same issue with Vue-Cli 2.0.
Should i modify something in the webpack to separate files to be minified?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
@ricardodejuan perfect, glad it worked!
As mentioned before, I’m going to keep this open so we can move away from needing this preservation entirely.
This will be resolved (no pun intended) on Thursday, when we cut a new release 😄