Skip to content
This repository was archived by the owner on Mar 29, 2018. It is now read-only.
This repository was archived by the owner on Mar 29, 2018. It is now read-only.

Custom Activity Objects #20

@JonnyPillar

Description

@JonnyPillar

Hi,

I have a notification activity that has the form raw_activity.json https://gist.github.com/JonnyPillar/a7c7705fc564ca17a88dbf9ec3ced477. As part of the activity we have the product field which is a custom object (Note product data has been removed).

If I use the GetStream Ruby client and retrieve a notification feed containing that activity the expected product data is returned. See ruby_client.rb.

If I use the Go Client however, the product object is just returned as "product": "". See go_client.json.

Looking at the code it comes down to https://github.com/GetStream/stream-go/blob/master/activity.go#L202 being set a string. If the custom element is not a string it is not unmarshalled. Was this an intentional design decision or a bug?

Thanks for the help
JP

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions