These are chat archives for dry-rb/chat

Nov 2016
George Millo
Nov 24 2016 13:20
Can someone explain to me the difference between hints, errors, and messages in dry-v?
looks like messages = hints + errors, amirite?
but what's the difference between hints and errors?
Christopher Dennl-Ortega Arrieta
Nov 24 2016 17:34
@georgemillo one is all messages that can happen, and the other is only messages for errors that actually happened
Martín Fernández
Nov 24 2016 19:55
Should I expect the correct coercion for this validations ? The input can be a string like “120” or “1.2"
Dry::Validation.Form do
      optional(:width).maybe { float? | int? }
      optional(:height).maybe { float? | int? }