stmcginnis / gofish

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

Handle json name being different than property name #138

Closed stmcginnis closed 3 years ago

stmcginnis commented 3 years ago

There are several read/write fields that have different property names to conform to go standards than their json names. A common one being something like RoleID (go) versus RoleId (json).

This updates the common Update logic account for the names being different so we don't try to update a field that the system will not recognize.

Closes: #124