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

reitit.coercion/request-coercer converts records created by a multipart data store into maps #621

Open
p-himik opened this issue May 8, 2023 · 0 comments

Comments

@p-himik
Copy link

p-himik commented May 8, 2023

The Reitit multipart middleware uses the coercer in such a way so that it keywordizes all the keys in the data, even if that data is a record.

I'm using a store that returns a record instead of a plain map because it makes certain aspects simpler, including validation (a plain instance? instead of a custom spec). The current implementation of the multipart middleware along with the request-coercer function forces me to go back to a plain map with a custom spec.

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