Issue with same param name in different given blocks
Author: andreacfmCreated May 14, 2019Updated May 27, 2024
Labelsbug?
.....
given name: ->(val) do
val == 'name'
end do
requires :values, type: Array[String]
end
given name: ->(val) do
val == 'another_name'
end do
requires :values, type: Array[Json]
end
....Seems like the check on the values param in the second block override the first. When both the blocks are executed in the same call the second check on values fails as invalid.
Sounds like a bug?
Source: ruby-grape/grape