Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

By-pass serializer or pass struct to be serialized #22

Open
novln opened this issue Nov 13, 2020 · 0 comments
Open

By-pass serializer or pass struct to be serialized #22

novln opened this issue Nov 13, 2020 · 0 comments

Comments

@novln
Copy link

novln commented Nov 13, 2020

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant