diff --git a/backend/src/main/java/io/metersphere/commons/json/JSONSchemaGenerator.java b/backend/src/main/java/io/metersphere/commons/json/JSONSchemaGenerator.java index 1c7e427f92..94e6995ae3 100644 --- a/backend/src/main/java/io/metersphere/commons/json/JSONSchemaGenerator.java +++ b/backend/src/main/java/io/metersphere/commons/json/JSONSchemaGenerator.java @@ -103,7 +103,9 @@ public class JSONSchemaGenerator { } } - if (object.has("enum")) { + if(object.has("default")){ + concept.put(propertyName, object.get("default")); + }else if (object.has("enum")) { concept.put(propertyName, analyzeEnumProperty(object)); } else if (propertyObjType.equals("string")) { // 先设置空值 diff --git a/backend/src/main/java/io/metersphere/xpack b/backend/src/main/java/io/metersphere/xpack index fd37bcf940..8f10fac361 160000 --- a/backend/src/main/java/io/metersphere/xpack +++ b/backend/src/main/java/io/metersphere/xpack @@ -1 +1 @@ -Subproject commit fd37bcf9408177e13747cd0cf4f03781bb35d97b +Subproject commit 8f10fac36134bfe4d9520051fdf1cfb9b44f67e4