unsupported type interface {}
Rambatino opened this issue ยท 2 comments
Rambatino commented
Hello! ๐
We have data of the form:
type NotificationData struct {
Metadata map[string]interface{}
}
// Notification model
type Notification struct {
Data NotificationData
}
And it breaks with:
unsupported type interface {}
Is this something you would consider supporting?
Can try and get a repeatable example if you need!
kelindar commented
Hi, unfortunately no, this library is by design not supporting untyped data types, as it doesn't embed type information in.
You can either write a custom marshaler for this (i.e implement BinaryMarshal interface) or use some other package.