From 594cfca5e51acfa0acd8b11e060763d752316565 Mon Sep 17 00:00:00 2001 From: Michele Santoro <10807610+michelu89@users.noreply.github.com> Date: Thu, 30 Nov 2023 16:32:13 +0100 Subject: [PATCH] Add message for failed models on migration. (#54) Returning back an message, what happens. --- .../org/eclipse/esmf/ame/model/migration/FileInformation.java | 4 +++- src/main/java/org/eclipse/esmf/ame/services/ModelService.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/eclipse/esmf/ame/model/migration/FileInformation.java b/src/main/java/org/eclipse/esmf/ame/model/migration/FileInformation.java index 168519cc..3319e6b3 100644 --- a/src/main/java/org/eclipse/esmf/ame/model/migration/FileInformation.java +++ b/src/main/java/org/eclipse/esmf/ame/model/migration/FileInformation.java @@ -22,7 +22,6 @@ @Data @AllArgsConstructor public class FileInformation { - @JsonInclude( JsonInclude.Include.NON_NULL ) @JsonProperty( "name" ) public String name; @@ -30,4 +29,7 @@ public class FileInformation { @JsonInclude( JsonInclude.Include.NON_NULL ) @JsonProperty( "success" ) public Boolean success; + + @JsonProperty( "message" ) + public String message; } diff --git a/src/main/java/org/eclipse/esmf/ame/services/ModelService.java b/src/main/java/org/eclipse/esmf/ame/services/ModelService.java index dc11423e..1edb9a5b 100644 --- a/src/main/java/org/eclipse/esmf/ame/services/ModelService.java +++ b/src/main/java/org/eclipse/esmf/ame/services/ModelService.java @@ -153,7 +153,7 @@ private void namespaceFileInfo( final Namespace namespace, final Try