Post by cprabhudesai on Jun 13, 2019 14:42:45 GMT
Hello,
I was reading through the Fabric schema where I ran into trouble.
I visited the online Schema Index, and navigated to the Fabric schema (YAML) under "Primary schema files" and opened the latest schema definition for Fabric.v1_0_5.
Going over the schema I noticed the "FabricType" property had the following definition:
This provided very little information, so I opened the Resource and Schema Guide, where I found out the various FabricType enums.
To double-check, I opened the Fabric schema (JSON), and found out that the "FabricType" property shows the following:
Notice how the $ref's are different in both schema files. This left me confused, as both normative documents had different references for that same property. The resource guide had listed the enums for it, but that being just an informative document, I wasn't sure if it was recommended to refer it.
So my question is:
Should all schema files (XML, JSON, YAML) provide the exact same information? Is there a discrepancy in them ?
How they represent the information might vary as they follow different spec, CSDL vs OpenAPI. (Please correct me if this is inaccurate!)
Any help is appreciated. Questions/comments/concerns are welcome too
Thanks,
PS: I think this board calls for a rename to list the third schema being supported, CSDL and json-schema have a third counterpart now
I was reading through the Fabric schema where I ran into trouble.
I visited the online Schema Index, and navigated to the Fabric schema (YAML) under "Primary schema files" and opened the latest schema definition for Fabric.v1_0_5.
Going over the schema I noticed the "FabricType" property had the following definition:
...
FabricType:
$ref: http://redfish.dmtf.org/schemas/v1/odata-v4.yaml#/components/schemas/idRef
description: The protocol being sent over this fabric.
nullable: true
readOnly: true
x-longDescription: The value of this property shall contain the type of
fabric being represented by this simple fabric.
...
This provided very little information, so I opened the Resource and Schema Guide, where I found out the various FabricType enums.
To double-check, I opened the Fabric schema (JSON), and found out that the "FabricType" property shows the following:
...
"FabricType": {
"anyOf": [
{
"$ref": "http://redfish.dmtf.org/schemas/v1/Protocol.json#/definitions/Protocol"
},
{
"type": "null"
}
],
"description": "The protocol being sent over this fabric.",
"longDescription": "The value of this property shall contain the type of fabric being represented by this simple fabric.",
"readonly": true
},
...
Notice how the $ref's are different in both schema files. This left me confused, as both normative documents had different references for that same property. The resource guide had listed the enums for it, but that being just an informative document, I wasn't sure if it was recommended to refer it.
So my question is:
Should all schema files (XML, JSON, YAML) provide the exact same information? Is there a discrepancy in them ?
How they represent the information might vary as they follow different spec, CSDL vs OpenAPI. (Please correct me if this is inaccurate!)
Any help is appreciated. Questions/comments/concerns are welcome too
Thanks,
PS: I think this board calls for a rename to list the third schema being supported, CSDL and json-schema have a third counterpart now