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

Allow multiple strategies for the returned data #17

Open
yordis opened this issue Oct 8, 2023 · 1 comment
Open

Allow multiple strategies for the returned data #17

yordis opened this issue Oct 8, 2023 · 1 comment
Labels
feature [improvements] New functionality is needed or required

Comments

@yordis
Copy link

yordis commented Oct 8, 2023

Hey there 👋🏻 , as somebody passionate about the topic and with way too many scars I wish to have, I would like to be able to decide how the return payload is returned:

I may return the data as a map, struct, or without decoding as string/raw.

  • map because you do not want the double-pass of decoders, and speed is critical. Also, primitive obsessions are helpful when taking advantage of derives out there.

  • struct, you are ok with the double-pass and want to work with structs.

  • raw when you want to pass the data to another service without doing much (I have seen this a lot with Stripe)


Related to beam-community/stripity-stripe#805

@nelsonmestevao nelsonmestevao added the feature [improvements] New functionality is needed or required label Oct 8, 2023
@nelsonmestevao
Copy link
Member

nelsonmestevao commented Oct 8, 2023

Hey @yordis, thank you for opening this issue.

One of our goals is to have a tool that gives the best starting point to developers. Your suggestion aligns perfectly with that vision. We are adding it to our roadmap 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature [improvements] New functionality is needed or required
Projects
None yet
Development

No branches or pull requests

2 participants