|
Post by JenHuang on Jan 16, 2020 4:10:24 GMT
Hi all, The specification mentioned that "The OData metadata describes top-level service resources and resource types according to ODataSchema." (DSP0266_1.8.0.pdf, 8.3.1) Should all the odata schemas(Everything in schema bundle) be listed for "/redfish/v1/$metadata" (Not able to support for implementation) or listing the odata schema that implementation supported?
|
|
|
Post by mraineri on Jan 16, 2020 13:38:15 GMT
No, you do not need to include everything. You only need to include schemas and namespaces your service implements. Generally speaking, OData clients will use properties like "@odata.context" and "@odata.type" in conjunction with "$metadata" to look up definitions. So, if your service reports "#ComputerSystem.v1_5_0.ComputerSystem" as a value for "@odata.type", then "$metadata" needs to contain a reference to the "ComputerSystem.v1_5_0" namespace. There's a bit more info about this found in section 5 (Metadata document) of our Redfish and OData White Paper here: www.dmtf.org/sites/default/files/standards/documents/DSP2052_1.0.0.pdf
|
|
|
Post by mraineri on Jan 16, 2020 13:40:49 GMT
I should also add that it shouldn't cause issues to have extra namespaces referenced in the document; they will just be unused by clients.
|
|