fix(接口测试): 接口调试插件保存报错

This commit is contained in:
AgAngle 2024-03-06 14:13:23 +08:00 committed by Craftsman
parent 1b741f1368
commit 3bf9ee9561
3 changed files with 3 additions and 2 deletions

View File

@ -33,7 +33,7 @@ public class ApiDebugAddRequest implements Serializable {
private String method;
@Schema(description = "http协议url/其它协议则为空")
@Size(min = 1, max = 500, message = "{api_debug.protocol.length_range}")
@Size(max = 500, message = "{api_debug.protocol.length_range}")
private String path;
@Schema(description = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)

View File

@ -31,7 +31,7 @@ public class ApiDebugUpdateRequest implements Serializable {
private String method;
@Schema(description = "http协议路径/其它协议则为空")
@Size(min = 1, max = 500, message = "{api_debug.protocol.length_range}")
@Size(max = 500, message = "{api_debug.protocol.length_range}")
private String path;
@Schema(description = "模块fk", requiredMode = Schema.RequiredMode.REQUIRED)

View File

@ -206,6 +206,7 @@ public class ApiDebugControllerTests extends BaseTest {
request.setName("test1");
request.setUploadFileIds(null);
request.setLinkFileIds(null);
request.setPath("");
mvcResult = this.requestPostWithOkAndReturn(DEFAULT_ADD, request);
resultData = getResultData(mvcResult, ApiDebug.class);
this.anotherAddApiDebug = assertUpdateApiDebug(request, msHttpElement, resultData.getId());