grape icon indicating copy to clipboard operation
grape copied to clipboard

Add failing test for multiple nested params error indices

Open infiniteluke opened this issue 4 years ago • 2 comments

This reproduces the issue described in #1998. The AttributesIterator seems to control what the a given scopes index is set to. I believe this bug is due to index not iterating in sync with each param being validating in an array.

You can see here that the scope is set to 2 before we even start validating the value param: image

infiniteluke avatar May 20 '20 18:05 infiniteluke

1 Warning
:warning: Unless you’re refactoring existing code, please update CHANGELOG.md.

Here's an example of a CHANGELOG.md entry:

* [#2055](https://github.com/ruby-grape/grape/pull/2055): Add failing test for multiple nested params error indices - [@infiniteluke](https://github.com/infiniteluke).

Generated by :no_entry_sign: danger

grape-bot avatar May 20 '20 18:05 grape-bot

Hey @infiniteluke ! This is exactly the issue I'm having currently, and I see the issue is still open. Did you find a workaround for this problem? Thanks for making that spec!

StefanHagen avatar Dec 08 '20 22:12 StefanHagen