Resolves #130 by parsing multiple different types of data in the useACKfield.
In our Cloud environment, this field comes as a stringified boolean, such as a "false". Which caused an error as the string wasn't able to be parsed into an int.
These changes will cope with useACK as both int and bool by using a custom json-marshaller ...
Resolves #130 by parsing multiple different types of data in the
useACK
field.In our Cloud environment, this field comes as a stringified boolean, such as a
"false"
. Which caused an error as the string wasn't able to be parsed into anint
.These changes will cope with
useACK
as bothint
andbool
by using a custom json-marshaller ...int
as astring
:"1"
int
as anint
:1
bool
as astring
:"true"
bool
as abool
:true
There's test cases for all these variants.