By-pass serializer or pass struct to be serialized
novln opened this issue Β· comments
Thomas LE ROUX commented
Hello π,
It would be great it we could by-pass the serializer so we can unmarshal (manually) a specific struct
, and not a generic map
.
Or, provide the struct
as payload so the serializer could use this instance.
For simplicity, I would prefer the second option.
For flexibility, the first one: we could receive a payload that is schema-less (a webhook for example) and depending of its type (defined by a keyword or composite information), unmarshal a specific struct
.
If you have further question, don't hesitate to ask.
Cheers,