fix(接口测试): idea插件导入的接口,json-schema自动生成结果有误
This commit is contained in:
parent
671364ab0a
commit
c591162490
|
@ -265,7 +265,8 @@ public class JsonSchemaBuilder {
|
|||
}
|
||||
|
||||
private static String getPropertyTextValue(JsonNode propertyNode, String key) {
|
||||
return propertyNode.get(key) == null ? StringUtils.EMPTY : propertyNode.get(key).asText();
|
||||
JsonNode jsonNode = propertyNode.get(key);
|
||||
return jsonNode == null || jsonNode instanceof NullNode ? StringUtils.EMPTY : jsonNode.asText();
|
||||
}
|
||||
|
||||
private static boolean isVariable(String value) {
|
||||
|
|
Loading…
Reference in New Issue