Skip to content

Commit db692a3

Browse files
committed
fix: temporarily disable validation on recipe groups
title is not filled when a recipe is assigned to a recipe group
1 parent e066028 commit db692a3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/main/java/com/sterul/opencookbookapiserver/controllers/requests/RecipeGroupRequest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
package com.sterul.opencookbookapiserver.controllers.requests;
22

3-
import jakarta.validation.constraints.NotEmpty;
4-
import jakarta.validation.constraints.NotNull;
5-
63
import lombok.AllArgsConstructor;
74
import lombok.Builder;
85
import lombok.Data;
@@ -16,8 +13,10 @@ public class RecipeGroupRequest {
1613

1714
private Long id;
1815

19-
@NotNull
20-
@NotEmpty
16+
// Temporarily disabled. When a recipe has a recipe group, it does not have a title
17+
// TODO: Different class for recipe group creation / update and recipe creation / update
18+
// @NotNull
19+
// @NotEmpty
2120
private String title;
2221

2322
}

0 commit comments

Comments
 (0)