DomainService Fails to Unmarshal DomainChildren
rejoshed opened this issue · 2 comments
rejoshed commented
Hello,
In using CS-Go, I noticed that listDomainChildren fails to unmarshal DomainChildren.
I modified the JSON tag and it worked perfectly.
DomainChildren []*DomainChildren `json:"domain"`
I don't know if this is an issue across all versions of the CloudStack API. I personally work against 4.16.
I'd be happy to PR a change, but again I'm not sure if it would be backward compatible with older API versions.
rejoshed commented
Also, should it be considered an error if unmarshalling fails? I sort of think so.
davidjumani commented