Use @NotNull since @NotEmpty doesn't support URL
This commit is contained in:
parent
6478210330
commit
81a21c0d5f
|
@ -11,6 +11,7 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import javax.validation.constraints.NotEmpty;
|
import javax.validation.constraints.NotEmpty;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
public class BadgeConfiguration {
|
public class BadgeConfiguration {
|
||||||
private final String name;
|
private final String name;
|
||||||
|
@ -29,10 +30,9 @@ public class BadgeConfiguration {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotEmpty
|
@NotNull
|
||||||
@JsonSerialize(converter = URLSerializationConverter.class)
|
@JsonSerialize(converter = URLSerializationConverter.class)
|
||||||
public URL getImageUrl() {
|
public URL getImageUrl() {
|
||||||
return imageUrl;
|
return imageUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue