fix(接口测试): 修复null值被当成null类型调用失败的缺陷

--bug=1019350 --user=王孝刚
[接口测试]github#19439接口配置中,当请求体由json切换为json-schema时,null值被处理成""造成接口调用失败
https://www.tapd.cn/55049933/s/1287917
This commit is contained in:
wxg0103 2022-11-03 16:04:26 +08:00 committed by wxg0103
parent 8d0001fb2a
commit f60fd53ffe

View File

@ -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;