500 Error Reponse on NCMP inventory cmhandle search 18/133718/3
authorseanbeirne <sean.beirne@est.tech>
Tue, 21 Mar 2023 14:34:02 +0000 (14:34 +0000)
committerSean Beirne <sean.beirne@est.tech>
Wed, 22 Mar 2023 15:20:17 +0000 (15:20 +0000)
Issue-ID: CPS-1563
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: I5579e8e852c20ce61a6684140198e989f7876d79

cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NcmpRestInputMapper.java

index eb48754..b3f36f9 100644 (file)
@@ -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);
 }