I’m working on a custom provider and I have one specific resource which can accept several optional (and mutually exclusive) integer properties. However, I’ve noticed that when I set a property to zero, then remove the property, the SDK does not detect this as a change. In other words, I cannot differentiate between an explicit zero value and the removal of this property.
I’m guessing that I’m seeing another symptom of the same underlying issue. Is there a workaround here? Zero is a valid value for my integer field fwiw.
There may be certain provider code workarounds that can help in this situation, albeit sort of confusing to implement, such as using a Default value that is outside the expected values then ignoring that value in the actual create, read, update, and delete logic.
Thank you for the response @bflad. I ended up switching to a string property(ies) and I’m using an empty string value to indicate that the property is unset or deleted.
I’m looking forward to the new version of the framework.