We are having an issue with setting the Geo Coordinates to null when they were previously populated.
The fields, longitude and latitude, on which the Geo Coordinates depend, are specified as "omitempty" in the model.
As a result, these fields are omitted from encoding if longitude and latitude have empty values (set to 0.0) or if they are set to nil. Thus, the old values are retained even when we attempt to set them to null.
We are having an issue with setting the Geo Coordinates to null when they were previously populated. The fields, longitude and latitude, on which the Geo Coordinates depend, are specified as "omitempty" in the model. As a result, these fields are omitted from encoding if longitude and latitude have empty values (set to 0.0) or if they are set to nil. Thus, the old values are retained even when we attempt to set them to null.
Also found this note that this has been a known issue: https://github.com/haipersuccor02/go-netbox/blob/empty_geocoordinates/README.md#changes-in-this-fork