merged from https://github.com/wordnik/swagger-ui/pull/642