We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello. Parameter renaming doesn't work if there is a hash inside given.
Params:
requires :a, type: Hash do optional :c, type: String given :c do requires :b, type: Hash do requires :input_field, as: :output_field end end end
Input:
{ a: { b: { input_field: 'value' }, c: 'value2' } }
After running declared(params, evaluate_given: true):
declared(params, evaluate_given: true)
Expected:
{ a: { b: { output_field: 'value' }, c: 'value2' } }
Actual: Parameter input_field is not renamed to output_field.
Info: grape version 1.7.1, ruby 3.0.2
The text was updated successfully, but these errors were encountered:
Try turning this into a spec, let's see that it's still the case in the next 1.8?
Sorry, something went wrong.
Added spec. Still the case in the latest main branch.
da9815d
This was fixed in #2469, please check it out!
No branches or pull requests
Hello.
Parameter renaming doesn't work if there is a hash inside given.
Params:
Input:
After running
declared(params, evaluate_given: true)
:Expected:
Actual:
Parameter input_field is not renamed to output_field.
Info: grape version 1.7.1, ruby 3.0.2
The text was updated successfully, but these errors were encountered: