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

docExpansion option is not working

Open sequielo opened this issue 14 years ago • 1 comments

When passing docExpansion with value "list" or "full" doesn't achieve desired bevahiour.

Inspecting the code, the function Docs.expandEndpointListForResource(resource) uses a selector based on an ID instead of a CLASS. When the parameter resource is '' (empty string) actually doesn't select nothing. It should select based on the class of the elements in that case.

Tested on v1.1.4 and v1.1.5

sequielo avatar Nov 27 '12 02:11 sequielo

This has been solved for a while but is there anybody there with version 1.1 and can't / don't want to upgrade and want to have it to expand full; a work around is on the onComplete call: Docs.toggleEndpointListForResource(resourcePath);

malsec-dev avatar Jun 13 '14 17:06 malsec-dev