updated from swagger-js