mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-06 12:45:22 +08:00
fix:common parameters under one resource should be remove, otherwise will be treated as a method
This commit is contained in:
parent
29f42c68e6
commit
99c0a0ae67
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user