Commit e81abaae authored by Anastasios Poimenidis's avatar Anastasios Poimenidis
Browse files

fix: introduce constraints for POST requests in ServiceDTO and ServiceOrderDTO

parent 1aa430d0
Loading
Loading
Loading
Loading
Loading
+3 −2
Changes for src/main/java/org/etsi/osl/hypo/api/tmf/services/common/model/ServiceDTO.java: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -106,10 +106,11 @@ public class ServiceDTO {
    private String category;
    private Boolean isBundle;

    @NotNull(groups = OnPost.class, message = "serviceSpecification field should not be null")
    private ServiceSpecificationRef serviceSpecification;

    @NotNull(groups = OnPost.class, message = "serviceCharacteritic field should not be null")
    @NotEmpty(groups = OnPost.class, message = "serviceCharacteritic field should not be empty")
    @NotNull(groups = OnPost.class, message = "serviceCharacteristic field should not be null")
    @NotEmpty(groups = OnPost.class, message = "serviceCharacteristic field should not be empty")
    private Set<Characteristic> serviceCharacteristic;

    private Set<RelatedParty> relatedParty;