forked from loafle/openapi-generator-original
Superagent does not always produce a `body`. See http://visionmedia.github.io/superagent/ for details. When it doesn't, we should deserialize the raw `response.text` rather than returning `null`. Currently, the JS client always returns `null` when the return type is String! This commit fixes that.