mirror of https://github.com/halo-dev/halo
Remove url validation on url property of Menu
parent
6ceb18784f
commit
68393361cd
|
@ -4,7 +4,6 @@ import cc.ryanc.halo.model.dto.base.InputConverter;
|
||||||
import cc.ryanc.halo.model.entity.Menu;
|
import cc.ryanc.halo.model.entity.Menu;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
import org.hibernate.validator.constraints.URL;
|
|
||||||
|
|
||||||
import javax.validation.constraints.Min;
|
import javax.validation.constraints.Min;
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotBlank;
|
||||||
|
@ -26,7 +25,6 @@ public class MenuParam implements InputConverter<Menu> {
|
||||||
|
|
||||||
@NotBlank(message = "Menu url must not be blank")
|
@NotBlank(message = "Menu url must not be blank")
|
||||||
@Size(max = 1023, message = "Length of menu url must not be more than {max}")
|
@Size(max = 1023, message = "Length of menu url must not be more than {max}")
|
||||||
@URL(message = "Menu url has incorrect url format")
|
|
||||||
private String url;
|
private String url;
|
||||||
|
|
||||||
@Min(value = 0, message = "Menu sort must not be less than {value}")
|
@Min(value = 0, message = "Menu sort must not be less than {value}")
|
||||||
|
|
Loading…
Reference in New Issue