fix:common parameters under one resource should be remove, otherwise will be treated as a method

This commit is contained in:
陈细忠 2018-07-23 09:57:13 +08:00
parent 29f42c68e6
commit 99c0a0ae67

View File

@ -85,6 +85,8 @@ const swagger = require('swagger-client');
}
_.each(res.paths, (apis, path) => {
// parameters is common parameters, not a method
delete apis.parameters;
_.each(apis, (api, method) => {
api.path = path;
api.method = method;