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

docExpansion is not working

Open zak905 opened this issue 9 years ago • 4 comments

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?

zak905 avatar May 07 '17 14:05 zak905

It's not supported yet.

webron avatar May 08 '17 19:05 webron

same issue we have here too: https://github.com/swagger-api/swagger-ui/issues/3088

urukalo avatar May 19 '17 08:05 urukalo

Duplicate of #2799.

webron avatar May 30 '17 22:05 webron

I just use jquery to collapse them

$.initialize(".is-open", function() { $(".is-open").children('div').hide(); });

wraycode avatar Sep 08 '17 21:09 wraycode