Releases: paultyng/go-unifi
Releases · paultyng/go-unifi
v1.21.0
v1.20.0
v1.19.0
v1.18.0
Fix type of `x_ssh_keys` The `unifi_settings_mgmt` resource fails for me with the following error: ``` Error: unable to decode body: GET s/default/get/setting/mgmt unable to unmarshal alias: json: cannot unmarshal object into Go struct field .x_ssh_keys of type string ``` My `x_ssh_keys` looks like this: ``` [ { "name": "Laptop", "type": "ssh-rsa", "key": "REDACTED", "comment": "REDACTED", "date": "2021-02-25T08:26:04Z", "fingerprint": "REDACTED" } ] ```
v1.17.1
Fixing unmarshalling of `numberOrString` New unmarshalling rules for fields which could be numeric or string values were not properly typecasted upon being deserialized. Cleaned up the api template file and moved custom unmarshalling type logic into go code out of the template.