swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

docExpansion issue

Open ocdevops opened this issue 9 years ago • 3 comments

  • swagger-ui version 3.0.13 It think it does not work, it is ignoring docExpansion parameter settings.

ocdevops avatar Jun 07 '17 06:06 ocdevops

+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"
	})

wollanup avatar Jun 07 '17 10:06 wollanup

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" })

siddamreddy avatar Jun 07 '17 13:06 siddamreddy

docExpansion is available in master, not 3.0.13. It will be available in 3.0.14.

webron avatar Jun 07 '17 16:06 webron