aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Gleeson <luke.gleeson@est.tech>2023-03-22 15:52:20 +0000
committerGerrit Code Review <gerrit@onap.org>2023-03-22 15:52:20 +0000
commitaa3b2d66f489528e7773e2db584d41807dadfcb0 (patch)
tree31d93976e92cccabc3cea98c8d6feefc34f2878e
parente8b83203a3f3a7ccf23084a9abecdc1185d34815 (diff)
parent3ad67a2c381abbc0e46688951bceac3808c9249e (diff)
Merge "500 Error Reponse on NCMP inventory cmhandle search"
-rw-r--r--cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NcmpRestInputMapper.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NcmpRestInputMapper.java b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NcmpRestInputMapper.java
index eb48754b4..b3f36f9c8 100644
--- a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NcmpRestInputMapper.java
+++ b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NcmpRestInputMapper.java
@@ -1,6 +1,6 @@
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2022 Nordix Foundation
+ * Copyright (C) 2022-2023 Nordix Foundation
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -62,6 +62,9 @@ public interface NcmpRestInputMapper {
RestModuleDefinition toRestModuleDefinition(
final ModuleDefinition moduleDefinition);
+ @Mapping(source = "cmHandleQueryParameters", target = "cmHandleQueryParameters",
+ nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS,
+ nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.SET_TO_DEFAULT)
CmHandleQueryServiceParameters toCmHandleQueryServiceParameters(
final CmHandleQueryParameters cmHandleQueryParameters);
}