swagger-ui
swagger-ui copied to clipboard
docExpansion is not working
I am using swagger-ui 3.0.8, and I am trying to get all the operation collapsed on start up using docExapnsion:"none", but it does seem to have any effect. is this option still available? if not, is there any other ways to do it?
It's not supported yet.
same issue we have here too: https://github.com/swagger-api/swagger-ui/issues/3088
Duplicate of #2799.
I just use jquery to collapse them
$.initialize(".is-open", function() {
$(".is-open").children('div').hide();
});