From: Jim Hahn Date: Tue, 14 Nov 2017 16:09:42 +0000 (-0500) Subject: Force source to always be included in JSON X-Git-Tag: v1.1.0~2^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F81%2F23481%2F1;p=so.git Force source to always be included in JSON Modified RequestInfo to pass source to JSON, even when it has the default value. Ordinarily, this is unnecessary when the default value is null, but in this case, the default value is not null, thus other code to which the JSON is passed expects it to be populated. Change-Id: I53fde35b8d46f69234fb51f1cceedb31cedc3335 Issue-Id: SO-340 Signed-off-by: Jim Hahn --- diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/serviceinstancebeans/RequestInfo.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/serviceinstancebeans/RequestInfo.java index 6b8cb84b3c..66d6ce5398 100644 --- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/serviceinstancebeans/RequestInfo.java +++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/serviceinstancebeans/RequestInfo.java @@ -32,6 +32,7 @@ public class RequestInfo { protected String orderNumber; protected String productFamilyId; protected Integer orderVersion; + @JsonSerialize(include=Inclusion.ALWAYS) protected String source; protected String instanceName; @JsonSerialize(include=Inclusion.ALWAYS)