You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When use multiple types, there is a possibility that value is not an array.
Maybe should determine unless value.is_a?(Array) and return InvalidValue.new, like DryTypeCoercer#call
If this is correct, I can create a PR to fix it.
The text was updated successfully, but these errors were encountered:
My project use a custom type like this.
And defined params like this.
There are no problem when I send these requests.
But when I send this request, raise a
Grape::Exceptions::ValidationErrors
I think there is a problem with the
call
method oflib/grape/validations/types/custom_type_collection_coercer.rb
.When use multiple types, there is a possibility that
value
is not an array.Maybe should determine
unless value.is_a?(Array)
and returnInvalidValue.new
, likeDryTypeCoercer#call
If this is correct, I can create a PR to fix it.
The text was updated successfully, but these errors were encountered: