-
Notifications
You must be signed in to change notification settings - Fork 4
Always return hash error #21
Copy link
Copy link
Open
Labels
Description
We should ensure that the middleware always return a hash.
we could raise an error if the middleware returns something different than a hash.
example:
class Mapper < HashMap::Base
transforms_output ->(o) { o.compact }, ->(o){ logger.info(o.inspect) }
property :name
endThat will return true instead of a hash.
Reactions are currently unavailable