merged https://github.com/wordnik/swagger-js/issues/42