nukosuke / go-zendesk

Zendesk API client library for Go
https://pkg.go.dev/github.com/nukosuke/go-zendesk/zendesk
MIT License
62 stars 81 forks source link

Unmarshal support for Ticket GroupID #287

Closed raintomista closed 11 months ago

raintomista commented 1 year ago

There are times that group_id is being returned as string instead of number when using Show Changes to Ticket endpoint and causes json unmarshal to fail

json: cannot unmarshal string into Go struct field Ticket.result.ticket.group_id of type int64

Changing the type of Ticket.GroupID with json.Number seems to solve the issue.