Skip to content

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

@p-himik

Description

@p-himik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    👍 Could do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions