Closed lsglick closed 1 year ago
We're planning a few other changes to aws-record before releasing a new version. Do you have a workaround for now?
Thank you!
We're planning a few other changes to aws-record before releasing a new version. Do you have a workaround for now?
@mullermp for now we can use a custom NilableStringSetMarshaler
that doesn't type cast nil
to Set.new
, but we'll look forward to the release so we can remove that!
I've released this today among other things. Please give this a try.
Description of changes:
The fix in #112 had the side effect of calling
type_cast
onnil
if thedefault_value
was unset.Because the
StringSetMarshaler
andNumericSetMarshaler
both convertnil
toSet.new
, this caused the unset default value in practice to becomeSet.new
instead ofnil
.Ultimately this caused downstream effects such as always persisting empty or unset sets as
nil
despite the#persist_nil?
returningfalse
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.