Skip to content

Always return hash error #21

@arturictus

Description

@arturictus

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
end

That will return true instead of a hash.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions