mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 19:33:55 +00:00
692c865c76
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.
19 lines
615 B
JSON
19 lines
615 B
JSON
{
|
|
"name": "swagger-petstore",
|
|
"version": "1.0.0",
|
|
"description": "This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters",
|
|
"license": "Apache 2.0",
|
|
"main": "src/index.js",
|
|
"scripts": {
|
|
"test": "./node_modules/mocha/bin/mocha --recursive"
|
|
},
|
|
"dependencies": {
|
|
"superagent": "1.7.1"
|
|
},
|
|
"devDependencies": {
|
|
"mocha": "~2.3.4",
|
|
"sinon": "1.17.3",
|
|
"expect.js": "~0.3.1"
|
|
}
|
|
}
|