Skip to content

Commit 4e79a85

Browse files
author
Dennis Labordus
committed
Small improvements.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 6b5e0c7 commit 4e79a85

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

app/src/main/java/org/lfenergy/compas/scl/data/rest/v1/CompasSclDataResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,4 @@ public Uni<Void> deleteVersion(@PathParam(TYPE_PATH_PARAM) SclFileType type,
135135
compasSclDataService.delete(type, id, version);
136136
return Uni.createFrom().nullItem();
137137
}
138-
}
138+
}

app/src/main/java/org/lfenergy/compas/scl/data/websocket/v1/model/GetVersionWsRequest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
import org.eclipse.microprofile.openapi.annotations.media.Schema;
88

9+
import javax.validation.constraints.NotBlank;
10+
import javax.validation.constraints.NotNull;
911
import javax.xml.bind.annotation.*;
1012
import java.util.UUID;
1113

@@ -18,11 +20,13 @@
1820
public class GetVersionWsRequest {
1921
@Schema(description = "The ID of the SCL File.",
2022
example = "f7b98f4d-3fe4-4df2-8533-d7f0c1800344")
23+
@NotNull
2124
@XmlElement(name = "Id", namespace = SCL_DATA_SERVICE_V1_NS_URI, required = true)
2225
private UUID id;
2326

2427
@Schema(description = "The version of the SCL File.",
2528
example = "1.2.3")
29+
@NotBlank
2630
@XmlElement(name = "Version", namespace = SCL_DATA_SERVICE_V1_NS_URI, required = true)
2731
private String version;
2832

app/src/main/java/org/lfenergy/compas/scl/data/websocket/v1/model/GetWsRequest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import org.eclipse.microprofile.openapi.annotations.media.Schema;
88

9+
import javax.validation.constraints.NotNull;
910
import javax.xml.bind.annotation.*;
1011
import java.util.UUID;
1112

@@ -18,6 +19,7 @@
1819
public class GetWsRequest {
1920
@Schema(description = "The ID of the SCL File.",
2021
example = "f7b98f4d-3fe4-4df2-8533-d7f0c1800344")
22+
@NotNull
2123
@XmlElement(name = "Id", namespace = SCL_DATA_SERVICE_V1_NS_URI, required = true)
2224
private UUID id;
2325

app/src/main/java/org/lfenergy/compas/scl/data/websocket/v1/model/UpdateWsRequest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import org.eclipse.microprofile.openapi.annotations.media.Schema;
88

9+
import javax.validation.constraints.NotNull;
910
import javax.xml.bind.annotation.*;
1011
import java.util.UUID;
1112

@@ -19,6 +20,7 @@
1920
public class UpdateWsRequest extends org.lfenergy.compas.scl.data.rest.v1.model.UpdateRequest {
2021
@Schema(description = "The ID of the SCL File.",
2122
example = "f7b98f4d-3fe4-4df2-8533-d7f0c1800344")
23+
@NotNull
2224
@XmlElement(name = "Id", namespace = SCL_DATA_SERVICE_V1_NS_URI, required = true)
2325
private UUID id;
2426

0 commit comments

Comments
 (0)