It seems the type for message within FireFlyTokenTransferRequest is incorrect. Instead of accepting a message object, it is expecting a string.
requestBody: {
content: {
"application/json": {
....
....
/**
* Format: uuid
* @description The UUID of a message that has been correlated with this transfer using the data field of the transfer in a compatible token connector
*/
message?: string;
....
....
};
};
};
https://github.com/hyperledger/firefly/blob/main/pkg/core/tokentransfer.go#L29-L55
This may be a limitation of the swagger generator, because Message is type fftypes.UUID on TokenTransfer, but the actual input for that api is TokenTransferInput, which wraps TokenTransfer and also has a Message field of type MessageInOut.
It seems the type for
messagewithinFireFlyTokenTransferRequestis incorrect. Instead of accepting a message object, it is expecting a string.https://github.com/hyperledger/firefly/blob/main/pkg/core/tokentransfer.go#L29-L55
This may be a limitation of the swagger generator, because
Messageis typefftypes.UUIDonTokenTransfer, but the actual input for that api isTokenTransferInput, which wrapsTokenTransferand also has aMessagefield of typeMessageInOut.