Closed BirknerAlex closed 5 months ago
Hey @BirknerAlex! Yeah, it does appear ASRock is not formatting this data according to the spec. I'm not sure where you would go to do it, but it would be worth filing an issue with them to see if they can fix their implementation to conform to the spec.
If it helps, you can reference the Redfish mockups where they could see the expected structure under Chassis
> 1U
.
It might also be worth checking if they have a firmware update available. I've seen a few times in the past where we've run in to similar situations and were lucky enough to find newer firmware had already fixed the problem.
There's not really a great way to handle this in gofish, but if you wanted to test with your own modified fork, you could either drop the Location
field or see if there's a way to add some conditional JSON unmarshalling to handle it.
Thank you! I just forwarded this to AsRock Rack. Closing this issue now.
Hi,
I got a new ASRock Rack B650D4U mainboard. Trying to get the chassis fails with
json: cannot unmarshal array into Go struct field Location.Location.PartLocation of type common.PartLocation
.I added the plain JSON result below. The response headers of the chassis returns following version is being used http://redfish.dmtf.org/schemas/v1/Chassis.v1_14_0.json - it looks indeed wrong here what AsRock here is doing but can it be skipped I don't need the location fields at all?
Regards Alex