Added validation into FilterPlaceDto
@@ -2,6 +2,7 @@ package greencity.dto.filter;
import greencity.dto.location.MapBoundsDto;
import greencity.entity.enums.PlaceStatus;
+import javax.validation.Valid;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@@ -10,6 +11,7 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor
@NoArgsConstructor
public class FilterPlaceDto {
+ @Valid
private MapBoundsDto mapBoundsDto;
private FilterDiscountDto discountDto;
private PlaceStatus status;
