These are chat archives for dry-rb/chat

30th
Nov 2017
Aaron Jensen
@aaronjensen
Nov 30 2017 21:28
Anyone know what happened to dry-schema?
Tim Riley
@timriley
Nov 30 2017 21:30
@aaronjensen development hasn’t started in earnest yet
it’s still coming
Aaron Jensen
@aaronjensen
Nov 30 2017 21:31
oh. we were using it and the docs disappeared
Piotr Solnica
@solnic
Nov 30 2017 21:51
@aaronjensen u sure you meant dry/schema? It hasn’t been released yet
Aaron Jensen
@aaronjensen
Nov 30 2017 21:53
erg, i confused myself, sorry. We're using dry::validation and we have a module named schema :)
so, nevermind me. Just so I understand though, dry/schema will be some things extracted from dry-validation that would be able to be used on its own in some way?
unrelated question: If we wanted to validate that something was a hash with string keys and string or number values, would we have to write a custom validator or is there a way to represent that with existing validators or types?
Piotr Solnica
@solnic
Nov 30 2017 21:57
validating keys is not supported
it’s one of the things that is on 1.0 roadmap
and yes, dry-schema will be a subset of dry-validation, and dry-validation 1.0 will be built on top of if
s/if/it/
Aaron Jensen
@aaronjensen
Nov 30 2017 22:03
got it, thank you