aboutsummaryrefslogtreecommitdiffstats
path: root/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'profiles')
-rw-r--r--profiles/http/src/main/java/org/onap/cli/fw/http/schema/OnapCommandSchemaHttpLoader.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/profiles/http/src/main/java/org/onap/cli/fw/http/schema/OnapCommandSchemaHttpLoader.java b/profiles/http/src/main/java/org/onap/cli/fw/http/schema/OnapCommandSchemaHttpLoader.java
index 6dd15884..52ced397 100644
--- a/profiles/http/src/main/java/org/onap/cli/fw/http/schema/OnapCommandSchemaHttpLoader.java
+++ b/profiles/http/src/main/java/org/onap/cli/fw/http/schema/OnapCommandSchemaHttpLoader.java
@@ -332,6 +332,9 @@ public class OnapCommandSchemaHttpLoader {
List<String> invaliResultMapParams = resultMapParams.stream()
.filter(p -> !resultAttNames.contains(p)).collect(Collectors.toList());
+ List<String> attributesMissing = resultAttNames.stream()
+ .filter(p -> !resultMapParams.contains(p)).collect(Collectors.toList());
+ invaliResultMapParams.addAll(attributesMissing);
if (!invaliResultMapParams.isEmpty()) {
OnapCommandUtils.throwOrCollect(new OnapCommandHttpInvalidResultMap(invaliResultMapParams), errorList, true);