I have created a Custom Connector that has a single "GetIssues" action. The action tests fine within the Custom Connector creator.
When I try to use the action in a very simple flow I get the following error:
The API 'opticsjira' returned an invalid response for workflow operation 'GetIssues' of type 'OpenApiConnection'. Error details: 'The API operation 'GetIssues' requires the property 'body' to be of type 'String' but is of type 'Object'.'
The swagger for the custom connector looks like this:
NOTE: I also tried with produces set to 'application/json', but I got the same error.
swagger: '2.0'
info: {version: 1.0.0, title: Optics JIRA, description: 'An API to connect to Optics
JIRA, providing the ability to a list of issues returned by a given filter.'}
host: xxx-jira.xxx.com
basePath: /
schemes: [https]
consumes: []
produces: [text/plain]
paths:
/rest/api/2/search:
get:
summary: GetIssues
description: Get JIRA Issues with a specific JQL
operationId: GetIssues
parameters:
- {name: jql, default: project=PSSTOOLS, in: query, type: string, required: true,
description: The JQL string to search for the issues you want to get}
responses:
'200':
description: '200'
schema: {type: string}
definitions: {}
parameters: {}
responses: {}
securityDefinitions:
basic_auth: {type: basic}
security:
- basic_auth: []
tags: []