docExpansion issue
- swagger-ui version 3.0.13 It think it does not work, it is ignoring docExpansion parameter settings.
+1
I can't get apisSorter and docExpansion to work.
Is this syntax correct or we have to modify src and build ?
in dist/index.html :
const ui = SwaggerUIBundle({
apisSorter : "alpha",
docExpansion : "none",
url : "http://localhost/doc",
dom_id : '#swagger-ui',
presets : [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins : [
SwaggerUIBundle.plugins.DownloadUrl
],
layout : "StandaloneLayout"
})
Hello wollanup,
How are u getting SwaggerUIBundle object. I couldn't get. import { SwaggerUIBundle, SwaggerUIStandalonePreset } from 'swagger-ui-dist'. I am using angular2 const ui = SwaggerUIBundle({ apisSorter : "alpha", docExpansion : "none", url : "http://localhost/doc", dom_id : '#swagger-ui', presets : [ SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset ], plugins : [ SwaggerUIBundle.plugins.DownloadUrl ], layout : "StandaloneLayout" })
docExpansion is available in master, not 3.0.13. It will be available in 3.0.14.