fix(接口测试): 修复接口json请求体里使用函数不生效问题
--bug=1011871 --user=赵勇 【接口测试】github#12203,有的接口json请求体里使用函数不生效 https://www.tapd.cn/55049933/s/1129643
This commit is contained in:
parent
eddfd7903e
commit
a60fd0777b
|
@ -2,6 +2,7 @@ package io.metersphere.api.dto.scenario;
|
|||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.alibaba.fastjson.parser.Feature;
|
||||
import com.alibaba.fastjson.serializer.SerializerFeature;
|
||||
import io.metersphere.api.dto.scenario.request.BodyFile;
|
||||
import io.metersphere.commons.json.JSONSchemaRunTest;
|
||||
|
@ -96,7 +97,7 @@ public class Body {
|
|||
} else {
|
||||
try {
|
||||
if (StringUtils.isNotEmpty(this.getRaw())) {
|
||||
JSONObject jsonObject = JSON.parseObject(this.getRaw());
|
||||
JSONObject jsonObject = JSON.parseObject(this.getRaw(), Feature.OrderedField);
|
||||
if (!this.getRaw().contains("$ref")) {
|
||||
jsonMockParse(jsonObject);
|
||||
}
|
||||
|
|
|
@ -207,7 +207,7 @@ export default {
|
|||
},
|
||||
created() {
|
||||
if (this.pickValue) {
|
||||
this.hidden = this.pickValue.hidden;
|
||||
this.hidden = this.root ? false : this.pickValue.hidden;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Reference in New Issue