mirror of
https://github.com/YMFE/yapi.git
synced 2025-04-06 15:00:26 +08:00
2xx的http statusCode都应该被处理
responses中成功的状态码不仅仅只有200,可能会是其它的,比如201
This commit is contained in:
parent
7333270a2d
commit
d47099985b
@ -195,7 +195,7 @@ function improtData(importDataModule) {
|
||||
return res_body;
|
||||
}
|
||||
_.each(api, (res, code) => {
|
||||
if (code == 200) {
|
||||
if (/^2/.test(code)) {
|
||||
if (res && typeof res === 'object') {
|
||||
|
||||
if (res.schema) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user