class Grape::Validations::Types::ArrayCoercer

Coerces elements in an array. It might be an array of strings or integers or an array of arrays of integers.

It could’ve been possible to use an of method (dry-rb.org/gems/dry-types/1.2/array-with-member/) provided by dry-types. Unfortunately, it doesn’t work for Grape because of behavior of Virtus which was used earlier, a ‘Grape::Validations::Types::PrimitiveCoercer` maintains Virtus behavior in coercing.