Solves issue described here for undefined parameters: https://github.com/swagger-api/swagger-js/issues/158