Similar to #1949 I have params that look like this:
{menu: {}, items: [{....}]}
These params get passed in to an operation like
SaveMenuAndItems.update!(menu, params)
In this case, I'm only concerned about the items. I'm not looking to update menu, but I do include the key just with an empty param body. In this case, it will still raise Lucky::MissingNestedParamError. We should allow this and only raise if params is missing the key completely. (e.g. {items: []} .
I think this comes from here...
|
nested_params.empty? ? nil : nested_params |
Similar to #1949 I have params that look like this:
These params get passed in to an operation like
SaveMenuAndItems.update!(menu, params)In this case, I'm only concerned about the
items. I'm not looking to updatemenu, but I do include the key just with an empty param body. In this case, it will still raiseLucky::MissingNestedParamError. We should allow this and only raise if params is missing the key completely. (e.g.{items: []}.I think this comes from here...
lucky/src/lucky/params.cr
Line 542 in 7787f99