OIC - handling nested Json array is failing when internal array is empty
Summary
OIC - handling nested Json array is failing when internal array is emptyContent
Hi,
I have a service provider response that should be mapped as-is to the OIC integration response.
I used a straight forward mapping.
If the nested array ("LineList") is empty, I get the following error:
{
"type" : "10.5.3",
"title" : "exception occurred while translating the response into the accepted media type.",
"detail" : "oracle.cloud.connector.api.CloudInvocationException: ORABPEL-15236\n\nTranslation Failure.\nFailed to translate XML to JSON. Cannot write end element: PlatformId\nThe data does not conform to the NXSD schema. Please correct the problem.\n",
"o:errorCode" : "TRANSLATION-ERROR-01",
"o:errorDetails" : [ {
"type" : "NA",
"instance" : "NA",
"title" : "NA",
"o:errorPath" : "NA",
"o:errorCode" : "NA"
} ]
}
Tagged:
0