terraform-plugin-framework
terraform-plugin-framework copied to clipboard
basetypes: fix equality for values with nil elementType
A MapValue, ListValue, or SetValue with a nil elementType is an invalid state, and therefore cannot verify equality with another value. These changes to the Equal method now returns false if either the receiver or argument have a nil elementType.
Closes #959
Thanks @bendbennett - added separate changelog entries for each type. Let me know if you'd prefer a single entry instead!
@bendbennett / @jar-b anything else need to happen here? Implementation change looks good to me 😄
Apologies, I missed that this needed rebased. Should be ready now!
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.