fix(接口测试): 接口调试插件保存报错
This commit is contained in:
parent
1b741f1368
commit
3bf9ee9561
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue