Hello all,
I've been back and forth through various forum posts but unfortunately have come up short. I have created a Custom Connector from an OpenAPI definition file and am able to successfully test all of the operations within it. However when attempting to move from testing to a workflow I am receiving the following error:
ResponseSwaggerSchemaValidationFailure. The API 'enthuse-5ffb24a8b87c0e2c89-5f5b6611f075d10563' returned an invalid response for workflow operation 'Retrieves_a_list_of_supporter_records' of type 'OpenApiConnection'. Error details: 'The API operation 'getSupporterBySearch' requires the property 'body/supporterPojoList' to be of type 'String' but is of type 'Array'.'
I've attempted a content-type override policy as described in this thread with no luck. Here the question went unanswered. Searching for "requires the property to be of type 'String' but is of type 'Array'." here in the forums reveals endless similar posts with no answer. So I'm hoping this one might be different!
The header returned by the custom connector testing shows the following:
{
"cf-cache-status": "DYNAMIC",
"cf-ray": "8238c4a3f8b86325-LHR",
"content-encoding": "gzip",
"content-length": "479",
"content-type": "application/json",
"date": "Thu, 09 Nov 2023 20:22:30 GMT",
"vary": "Origin,Access-Control-Request-Method,Access-Control-Request-Headers",
}
Can anyone see what the problem might be?