mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 12:09:13 +08:00
fix(接口测试): 修复null值被当成null类型调用失败的缺陷
--bug=1019350 --user=王孝刚 [接口测试]github#19439接口配置中,当请求体由json切换为json-schema时,null值被处理成""造成接口调用失败 https://www.tapd.cn/55049933/s/1287917
This commit is contained in:
parent
8d0001fb2a
commit
f60fd53ffe
@ -231,7 +231,7 @@ class Convert {
|
||||
} else if (isString(value)) {
|
||||
objectTemplate.type = "string";
|
||||
} else if (isNull(value)) {
|
||||
objectTemplate.type = "null";
|
||||
objectTemplate.type = "string";
|
||||
} else if (isArray(value)) {
|
||||
objectTemplate.type = "array";
|
||||
objectTemplate["mock"] = undefined;
|
||||
|
Loading…
Reference in New Issue
Block a user