|
Post by hramasub on Aug 11, 2016 14:07:05 GMT
Resource.v1_1_0.json defines a complex type named "Location" which has the following members:
1) "Info" (type : string, description : This property shall represent the location of the resource.) 2) "InfoFormat" (type : string, description : This property shall represent the format of the Info property.)
There is insufficient information on the usage of "InfoFormat". Moreover, none of the mockups provide a representative use of this member.
IF the requirement is to have the location information formatted as
[ Planar_Id : Daughter_Card_Id : Riser_Card_Id : Component_Id ]
what would be the corresponding value of Info & InfoFormat ?
|
|
|
Post by mraineri on Aug 12, 2016 13:33:35 GMT
Ultimately, it's up to the system implementer to encode these values the way they best see fit. But as an example with your given request, I would format it like this for something simplistic:
Location: { "Info": "[ A0 : B0 : 0 : 1 ]", "InfoFormat": "[ Planar_Id : Daughter_Card_Id : Riser_Card_Id : Component_Id ]" }
Some implementations may choose to use tokenized or formatted strings in the InfoFormat if it makes it easier for their management software to parse. For example:
Location: { "Info": "[ Planar_Id A0 : Daughter_Card_Id B0 : Riser_Card_Id 0 : Component_Id 1 ]", "InfoFormat": "[ Planar_Id %s : Daughter_Card_Id %s : Riser_Card_Id %d : Component_Id %d ]" }
|
|