These are chat archives for dry-rb/chat

11th
Feb 2016
Piotr Solnica
@solnic
Feb 11 2016 14:52
Class.new(Dry::Validation::Schema) do
  key(:email).required

  key(:age) do
    none? | (int? & gt?(18))
  end

  key(:address).hash? do
    key(:city).required(min_size?: 3)

    key(:street).required

    key(:country).hash? do
      key(:name).required
      key(:code).required
    end
  end

  key(:phone_numbers).array? do
    each(&:str?)
  end
end
^^ getting closer to make this work for 0.7
Oskar Szrajer
@gotar
Feb 11 2016 14:56
:heart:
Piotr Solnica
@solnic
Feb 11 2016 14:57
it’s kinda crazy but it’s possible half of the code will be removed lol
Oskar Szrajer
@gotar
Feb 11 2016 14:58
#goodChange
Piotr Solnica
@solnic
Feb 11 2016 14:58
ZOMG
Oskar Szrajer
@gotar
Feb 11 2016 14:58
:D
Piotr Solnica
@solnic
Feb 11 2016 14:58
I see what you did there ;)
Oskar Szrajer
@gotar
Feb 11 2016 14:58
;]
Andy Holland
@AMHOL
Feb 11 2016 16:11
Anyone going to Bath Ruby in March?
Oskar Szrajer
@gotar
Feb 11 2016 16:14
in March only Wroclove.rb
Piotr Solnica
@solnic
Feb 11 2016 16:35
@AMHOL not me
Andy Holland
@AMHOL
Feb 11 2016 16:35
:(