DMTF / Redfish-Interface-Emulator

The Redfish Interface Emulator can emulate a Redfish-based interface statically (GET) or dynamically (POST, PATCH, DELETE)
Other
59 stars 24 forks source link

Malformed Status struct in several objects #76

Closed stmcginnis closed 5 years ago

stmcginnis commented 5 years ago

The Status struct is defined as being:

{ "Health": "Ok", "HealthRollup": "Ok", "Oem": "foo", "State": "Enabled" }

http://redfish.dmtf.org/schemas/v1/Resource.json

There are several emulated objects that incorrectly introduce an additional layer of a "State" key for the status the looks like:

{ "State": { "Health": "Ok", "HealthRollup": "Ok", "Oem": "foo", "State": "Enabled" } }

The following are examples of this incorrect format:

All of these are defined as having a Status property of type Status.

Correct examples can be found in:

And several other locations.