Skip to content

Commit 9f0d860

Browse files
WS-2219: fix events workspaceId non-nullable
1 parent f9ce478 commit 9f0d860

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

model/src/main/java/com/basistech/rosette/apimodel/EventsOptions.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
import lombok.Builder;
2121
import lombok.Value;
2222

23+
import javax.validation.constraints.NotBlank;
24+
import javax.validation.constraints.NotEmpty;
25+
import javax.validation.constraints.NotNull;
26+
2327
/**
2428
* Events options
2529
*/
@@ -37,5 +41,6 @@ public class EventsOptions extends Options {
3741
/**
3842
* @return the modelType to use.
3943
*/
40-
private final String workspaceId;
44+
@NotBlank
45+
String workspaceId;
4146
}

0 commit comments

Comments
 (0)