Commit Graph

6 Commits

Author SHA1 Message Date
appkins
525d5e06c3 Replace sources 2024-07-18 19:06:38 -05:00
Joshua Spence
1348f74e9e Fix tests for UniFi Network 7.4 (#146) 2023-06-07 13:21:32 +10:00
Paul Tyng
887fae8168 handle omitted is true bools 2022-10-19 20:35:58 -04:00
Hendrik "T4cC0re" Meyer
4aed7d703d Generate UnmarshalJSON to handle emptyStringInt types
This commit changes the code generator to generate a `UnmarshalJSON` for each
struct, so that if unmarshalled it properly handles UniFis varying integer values
via the `emptyStringInt` type.

Structs not including a field of `int` type will still have the function generated,
but it will effectively do nothing.

Fixes #18
2021-01-03 13:21:53 -05:00
Ben Davies
df937016b0 Moved handling of string response to int using the existing emptyStringInt method as part of UnmarshalJSON as per Pauls suggestion 2020-10-09 13:42:28 -04:00
Paul Tyng
f74d29bd54 Fix empty string int marshalling in go 1.14 2020-03-26 16:13:36 -04:00