Hi @AaronLasseigne and team, we have stumbled upon a change in behaviour while trying to upgrade to version 5.0.0, which can be seen with the below action:
class TestArrayOfHashes < ActiveInteraction::Base
hash :hash do
string :required_attribute
string :option_with_default, :default => "foo"
end
array :array_of_hashes do
hash do
string :required_attribute
string :option_with_default, :default => "foo"
end
end
def execute
inputs
end
end
we get the expected output in version 4.1, where something_else is filtered out and option_with_default is added with its default value in both the hash and array of hashes:
Hi @AaronLasseigne and team, we have stumbled upon a change in behaviour while trying to upgrade to version 5.0.0, which can be seen with the below action:
Running with dummy data such as
we get the expected output in version 4.1, where
something_else
is filtered out andoption_with_default
is added with its default value in both the hash and array of hashes:however with 5.0 we get:
It looks like the extra attribute
something_else
is not filtered out and the optionaloption_with_default
isn't set anymore for the array of hashes.Is this a bug or is there perhaps a different way of declaring the array of hashes filter in version 5.0.0?
Thanks for your help!