fix(接口测试): 修复null类型执行失败的缺陷
--bug=1019350 --user=王孝刚 [接口测试]github#19439接口配置中,当请求体由json切换为jsonschema时,null值被处理成造成接口调用失败 https://www.tapd.cn/55049933/s/1288246
This commit is contained in:
parent
8d59cfaeb9
commit
05b762e430
|
@ -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