diff options
author | seanbeirne <sean.beirne@est.tech> | 2023-03-21 14:34:02 +0000 |
---|---|---|
committer | Sean Beirne <sean.beirne@est.tech> | 2023-03-22 15:20:17 +0000 |
commit | 3ad67a2c381abbc0e46688951bceac3808c9249e (patch) | |
tree | 604728c5358dd4744019c56ff25deec62c848efd /cps-ncmp-rest | |
parent | cb237058c5863253473671602806129dd6046ab5 (diff) |
500 Error Reponse on NCMP inventory cmhandle search
Issue-ID: CPS-1563
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: I5579e8e852c20ce61a6684140198e989f7876d79
Diffstat (limited to 'cps-ncmp-rest')
-rw-r--r-- | cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NcmpRestInputMapper.java | 5 |
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 eb48754b4f..b3f36f9c8b 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); } |