I'm getting the following error on a custom connector I've built: "The API 'palletways-20tracking' returned an invalid response for workflow operation 'GetTrack' of type 'OpenApiConnection'. Error details: 'The API operation 'GetTrack' requires the property 'body' to be of type 'Object' but is of type 'String'.'"
Now I've looked through various previous suggestions, but for the life of me cannot figure out where I'm going wrong. Deleting out the entire schema definition resolves the issue, but I kind of need that Schema! This is my Swagger:
swagger: '2.0'
info:
version: '1.0'
title: Palletways API
description: Palletways Tracking by Consignment
contact: {}
host: api.palletways.com
basePath: /getTrackingNotesByConNo
schemes: [https]
consumes: [application/json]
produces: [application/json]
paths:
/{Consignment}:
get:
summary: GetTrack
tags: [Misc]
operationId: GetTrack
deprecated: false
produces: [application/json]
parameters:
- {name: apikey, in: query, required: true, type: string, description: '', default: XXX
- {name: outputformat, in: query, required: true, type: string, description: '',
default: JSON}
- {name: Consignment, in: path, required: true, type: integer, format: int32,
description: '', default: 232395}
responses:
'200':
description: ''
headers:
'"cache-control"': {description: '"cache-control"', type: string}
'"content-type"': {description: '"content-type"', type: string}
'"date"': {description: '"date"', type: string}
'"expires"': {description: '"expires"', type: string}
'"pragma"': {description: '"pragma"', type: string}
'"x-ms-apihub-cached-response"': {description: '"x-ms-apihub-cached-response"',
type: string}
schema:
type: object
properties:
Status:
type: object
properties:
Code: {type: string, description: Code}
Description: {type: string, description: Description}
Count: {type: integer, format: int32, description: Count}
description: Status
Detail:
type: object
properties:
Data:
type: object
properties:
TrackingID: {type: string, description: TrackingID}
DateEntered: {type: string, description: DateEntered}
ConNo: {type: string, description: ConNo}
CustRef: {type: string, description: CustRef}
Lifts: {type: string, description: Lifts}
Weight: {type: string, description: Weight}
Status: {type: string, description: Status}
Barcodes: {type: string, description: Barcodes}
ColDepot: {type: string, description: ColDepot}
DelDepot: {type: string, description: DelDepot}
Notes:
type: array
items:
type: object
properties:
NoteType: {type: string, description: NoteType}
Barcode: {type: string, description: Barcode}
Comments: {type: string, description: Comments}
Date: {type: string, description: Date}
Time: {type: string, description: Time}
description: Notes
tracking_url: {type: string, description: tracking_url}
description: Data
description: Detail
definitions: {}
parameters: {}
responses: {}
securityDefinitions: {}
security: []
tags:I've tried adding in random "body: {type: object}", but I'm afraid much more than that is beyond my skill level.
Any advice greatly received!

Report
All responses (
Answers (