Hello,
When trying to unmarshall the return body for JSSResource/computers/id/295/subset/General&Hardware&Location&Software, I got an error when processing the ComputerDataSubsetSoftware structure.
The error is:
xml: invalid tag in field Text of type struct { Text string \"xml:\\\",chardata,omitempty\\\"\"; Name string \"xml:\\\"name,omitempty\\\"\"; PackageName string \"xml:\\\"package_name,omitempty\\\"\"; Version string \"xml:\\\"version,omitempty\\\"\" }: \",chardata,omitempty\"
After analysis, it appears that the Text field may not be present (this is correctly managed by the omitempty), but the associated name starts by a comma ,chardata
Removing the extra comma allow to solve this issue.
Thanks
Hello,
When trying to unmarshall the return body for JSSResource/computers/id/295/subset/General&Hardware&Location&Software, I got an error when processing the ComputerDataSubsetSoftware structure.
The error is:
xml: invalid tag in field Text of type struct { Text string \"xml:\\\",chardata,omitempty\\\"\"; Name string \"xml:\\\"name,omitempty\\\"\"; PackageName string \"xml:\\\"package_name,omitempty\\\"\"; Version string \"xml:\\\"version,omitempty\\\"\" }: \",chardata,omitempty\"After analysis, it appears that the Text field may not be present (this is correctly managed by the omitempty), but the associated name starts by a comma
,chardataRemoving the extra comma allow to solve this issue.
Thanks