These are chat archives for dry-rb/chat

18th
Oct 2016
Oskar Szrajer
@gotar
Oct 18 2016 13:57
In dry-web-roda i drop those default namespace to fix those error.
It's on master. Merged if you use it through dry-web
Ivo Benedito
@ivobenedito
Oct 18 2016 15:31
hey guys! Dry::Validation.JSON
there isn't any documentation on that module?
Ivo Benedito
@ivobenedito
Oct 18 2016 15:40
and also, what's the big difference between Dry::Validation.JSON and Dry::Validation.Schema in practical sense
Piotr Solnica
@solnic
Oct 18 2016 15:49
@ivobenedito plain schema doesn't infer coercions
Ivo Benedito
@ivobenedito
Oct 18 2016 15:50
@solnic and the coercions inside JSON schema
should be pointed out to Types::Json::<TypeName>
otherwise, it wont coerce anything right?
Piotr Solnica
@solnic
Oct 18 2016 15:53
Yes. JSON schema uses Types::Json and Form uses Types::Form
and why aren't Int and String types defined? because they're by default supported? I mean ... we can pass that type without any sort of coercion
Piotr Solnica
@solnic
Oct 18 2016 16:19
Yes
Ivo Benedito
@ivobenedito
Oct 18 2016 16:33
Screen Shot 2016-10-18 at 17.32.42.png
does this seem to make any sense on a schema definition for a JSON source to instantiate later a Model / ValueObject?