package com.commafeed.frontend.model.request;

import java.io.Serializable;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@SuppressWarnings("serial")
@ApiModel(description = "Category modification request")
@Data
public class CategoryModificationRequest implements Serializable {

	@ApiModelProperty(value = "id", required = true)
	@NotEmpty
	private Long id;

	@ApiModelProperty(value = "new name, null if not changed")
	@Size(max = 128)
	private String name;

	@ApiModelProperty(value = "new parent category id")
	@Size(max = 128)
	private String parentId;

	@ApiModelProperty(value = "new display position, null if not changed")
	private Integer position;

}

@@ -78,55 +78,8 @@
 %0D%0A%0D%0A
-import javax.validation.constraints.NotEmpty;%0D%0A
 impo
@@ -451,20 +451,8 @@
 e)%0D%0A
-%09@NotEmpty%0D%0A
 %09pri

fix for "No validator could be found for constraint 'javax.validation.constraints.NotEmpty' validating type 'java.lang.Long'."