fix(接口测试): 修复json切换jsonSchema时null值被处理成空串的缺陷
--bug=1019350 --user=王孝刚 [接口测试]github#19439接口配置中,当请求体由json切换为jsonschema时,null值被处理成造成接口调用失败 https://www.tapd.cn/55049933/s/1291697
This commit is contained in:
parent
6ab483382f
commit
0bba27983a
|
@ -232,7 +232,8 @@ class Convert {
|
||||||
objectTemplate.type = "string";
|
objectTemplate.type = "string";
|
||||||
} else if (isNull(value)) {
|
} else if (isNull(value)) {
|
||||||
objectTemplate.type = "string";
|
objectTemplate.type = "string";
|
||||||
} else if (isArray(value)) {
|
objectTemplate.mock = {'mock': ''};
|
||||||
|
}else if (isArray(value)) {
|
||||||
objectTemplate.type = "array";
|
objectTemplate.type = "array";
|
||||||
objectTemplate["mock"] = undefined;
|
objectTemplate["mock"] = undefined;
|
||||||
} else if (isObject(value)) {
|
} else if (isObject(value)) {
|
||||||
|
|
Loading…
Reference in New Issue