DryValidation.Types.List (dry_validation v1.0.0)

Represents a list of elements. Type or a function can also be specified.

DryValidation.schema do
  required :words, Types.List.type(Types.String)
  required :numbers, Types.List.type(Types.Integer)
  required :numbers_greater_than_ten, Types.List.type(Types.Integer.greater_than(10))
end

Link to this section Summary

Functions

Specify the required type of the elements within the list.

Link to this section Functions

Specify the required type of the elements within the list.