DryValidation.Types.List (dry_validation v1.0.1)

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

Summary

Functions

Specify the required type of the elements within the list.

Functions

Specify the required type of the elements within the list.