You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the way the code is written the gjson response will happily convert a value of "1234" to be 1234 when calling the Int() method. So, basically we want to derive the int value, ensure that it's not 0 and then explicitly call sjson.SetBytes to ensure that wof:id is an integer value.
Basically here:
https://github.com/whosonfirst/go-whosonfirst-export/blob/main/properties/wofid.go#L24-L27
Note that the way the code is written the
gjson
response will happily convert a value of "1234" to be 1234 when calling theInt()
method. So, basically we want to derive the int value, ensure that it's not 0 and then explicitly callsjson.SetBytes
to ensure thatwof:id
is an integer value.Background: whosonfirst-data/whosonfirst-data#2208
The text was updated successfully, but these errors were encountered: