When working on /search/transactions I've noticed that there is a difference in how empty related_transactions is presented in SearchTransactionsResponse in Rosetta vs. MinaMesh. In Rosetta empty related_transactions field is presented as:
"related_transactions": [],
In MinaMesh, in case of related_transactions: None the related_transactions is not serialized into the response at all.
RelatedTransaction is part of Transaction type, which is part of SearchTransactionsResponse. I suppose if we wanted to have the same behaviour we would need to serialize it to empty array when None via custom serialization behavior in https://github.com/harrysolovay/coinbase-mesh/blob/main/src/models/transaction.rs#L21.
When working on
/search/transactionsI've noticed that there is a difference in how emptyrelated_transactionsis presented inSearchTransactionsResponsein Rosetta vs. MinaMesh. In Rosetta emptyrelated_transactionsfield is presented as:In MinaMesh, in case of
related_transactions: Nonetherelated_transactionsis not serialized into the response at all.RelatedTransactionis part ofTransactiontype, which is part ofSearchTransactionsResponse. I suppose if we wanted to have the same behaviour we would need to serialize it to empty array whenNonevia custom serialization behavior in https://github.com/harrysolovay/coinbase-mesh/blob/main/src/models/transaction.rs#L21.