diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/request/ApiDefinitionMockPageRequest.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/request/ApiDefinitionMockPageRequest.java index 94fc92bf42..465e78d8de 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/request/ApiDefinitionMockPageRequest.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/request/ApiDefinitionMockPageRequest.java @@ -31,7 +31,6 @@ public class ApiDefinitionMockPageRequest extends BasePageRequest { private boolean enable = true; @Schema(description = "接口fk", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{api_definition_mock.api_definition_id.not_blank}") @Size(min = 1, max = 50, message = "{api_definition_mock.api_definition_id.length_range}") private String apiDefinitionId; diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiDefinitionMockMapper.xml b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiDefinitionMockMapper.xml index a3d4b0b58c..05f0a7a3e5 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiDefinitionMockMapper.xml +++ b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiDefinitionMockMapper.xml @@ -9,12 +9,14 @@