Peter Solnica
Peter Solnica
Thanks. I was thinking about having a way to instruct virtus what to do when a coercion fails. I'll look at how we could do this in a clean way...
@mbj oh? I wonder how long it would take to port virtus to use morpher. I would expect it to be simple :)
@mbj one thing I am concerned a little is performance, got any benchmarks with morpher already?
@mbj I'm so excited about this I'd try it out asap; please link me to some morpher examples if you have some, I could try porting virtus as an experiment...
@adz I will want to add the feature you requested in 1.x series despite the morpher integration which I plan for 2.0
@vasilakisfil because clearly nobody had the time to work on it
You can do `attribute :extras, Array, coerce: false` so that nil won't be coerced to an empty array
@GustavoCaso can you move this to dry-container (docsite directory) and open a PR there?
Currently strict mode is designed to work with coercions. I agree this should be documented though. I also started wondering if maybe I should change it so that it would...
This is concerned with what we want to do. Not how. So morpher is kinda irrelevant here. On Fri, Feb 28, 2014 at 3:18 PM, Markus Schirp [email protected] wrote: >...