fix(接口测试): 修复null类型执行失败的缺陷

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

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;