From 10a832ed3dea1924bfa555ab3b85b1cf1b228b2f Mon Sep 17 00:00:00 2001 From: aribeiro Date: Thu, 9 Sep 2021 08:54:17 +0100 Subject: Fix model init When upgrading, the model type for "ETSI SOL001 v2.5.1" is being updated and then the request for retrieving all model types with "NORMATIVE" type returns empty Issue-ID: SDC-3720 Signed-off-by: aribeiro Change-Id: Ibc71bd05426532416eb2ac09f598e7456777403b --- .../main/java/org/openecomp/sdc/be/ui/model/ModelCreateRequest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'catalog-model/src/main/java/org') diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/ui/model/ModelCreateRequest.java b/catalog-model/src/main/java/org/openecomp/sdc/be/ui/model/ModelCreateRequest.java index 8c2ee302f7..2130261d88 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/ui/model/ModelCreateRequest.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/ui/model/ModelCreateRequest.java @@ -37,7 +37,8 @@ public class ModelCreateRequest { private String name; private String derivedFrom; - + + @NotNull(message = "Model type cannot be null") private ModelTypeEnum modelType; } -- cgit 1.2.3-korg