Empty XML elements are converted to JSON array instead of String in OIC REST Adapter
Summary
JSON inline schema option in REST adapter converts empty XML elements to JSON array instead of String making the REST API to failContent
Hi Experts,
I am calling an external REST API from OIC[version 20.1.3.0.0 (200401.0200.34935)] and has selected the JSON inline schema as the Request Payload.
Example of sample payload
{
"pjOpenDate":"2020-06-20",
"acClosingDate": "2020-06-20",
"acOpeningDate": "2020-05-19",
"Status": "Open",
"projectedTakeoverDate":"2020-06-20",
"location": {
"id": "123456"
}
}
In OIC mapper, it is a one to one mapping . This works fine when all the above fields have value. It fails in OIC layer when one of the value doesn't have any value and mapping creates an element like </pjOpenDate>.
Tagged:
2