fix(接口测试): 修复json切换jsonSchema时null值被处理成空串的缺陷

--bug=1019350 --user=王孝刚
[接口测试]github#19439接口配置中,当请求体由json切换为jsonschema时,null值被处理成造成接口调用失败
https://www.tapd.cn/55049933/s/1291697
This commit is contained in:
wxg0103 2022-11-08 11:11:25 +08:00 committed by wxg0103
parent 6ab483382f
commit 0bba27983a
1 changed files with 2 additions and 1 deletions

View File

@ -232,7 +232,8 @@ class Convert {
objectTemplate.type = "string";
} else if (isNull(value)) {
objectTemplate.type = "string";
} else if (isArray(value)) {
objectTemplate.mock = {'mock': ''};
}else if (isArray(value)) {
objectTemplate.type = "array";
objectTemplate["mock"] = undefined;
} else if (isObject(value)) {