swagger-ui
swagger-ui copied to clipboard
docExpansion option is not working
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
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);