|
Post by AMI_Mani on Sept 25, 2024 3:14:51 GMT
Hi, If we add an OEM redfish URI to download file or printing content of file in base 64, do we need to add @odata.type and @odata.id attributes for get response? When we add as ComplexType in schema.xml file, Redfish service validator is not throwing error for this OEM URI(without @odata.type and @odata.id) Please confirm about ignoring @odata.type and @odata.id attributes in get response for use cases like this
Thanks, Mani
|
|
|
Post by jautor on Sept 26, 2024 21:02:37 GMT
If you mean an OEM property that would be a pointer/link to a non-Redfish resource, then no, that wouldn't be an @odata.id because the target resource won't behave like the spec would mandate. So no @odata.id or @odata.type required.
We have several places in the standard schema like this - for example, in the Assembly schema, the raw assembly data can be downloaded using the URI value of `BinaryDataURI`. We always name those properties with the "URI" suffix to help folks understand those. Basically any URI property that cannot be guaranteed to be a Redfish resource, and therefore isn't guaranteed to follow the Redfish Specification, falls into that category.
Now, if the resource is a JSON document, it would be best to make that align to the Redfish data model with an OEM schema... But it's not required.
Jeff
|
|