stmcginnis / gofish

Gofish is a Golang client library for DMTF Redfish and SNIA Swordfish interaction.
BSD 3-Clause "New" or "Revised" License
204 stars 109 forks source link

Fix Chassis controls link definition #324

Closed stmcginnis closed 2 months ago

stmcginnis commented 2 months ago

The Controls property of the Chassis object was incorrectly defined as a common.Links type, but it is actually a link to a collection, so it should be a common.Link (singular). This changes it to the Link type to avoid a JSON marshalling error on systems that populate this property.

This also uncovered that the link that is used later to retrieve these controls was never actually being set. Both issues are now fixed.

Fixes: #322

stmcginnis commented 2 months ago

Being handled in #323