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
Hello, parameter renaming doesn't work if there is a hash inside given.
Params:
requires :A, as: :a, type: Hash do
requires :category
given category: ->(val) { val == 'foo' } do
requires :B, as: :b, type: Hash do
requires :C, as: :c
end
end
end
Hello, parameter renaming doesn't work if there is a hash inside
given
.Params:
Input:
After running
declared(params, evaluate_given: true)
:Expected:
Actual:
Parameters B and C not renamed.
Info: grape version 1.7.1, ruby 3.0.2
The text was updated successfully, but these errors were encountered: