|
Post by AMI_Mani on Mar 27, 2023 19:45:59 GMT
Hi, As per 11.2.4 JSON Schema format, $id is refered as Reference to the URI where the schema file is published.
Term Description
$id Reference to the URI where the schema file is published
Assume we have oem schema and not published in public, how we can mention value for $id
If OEM schema is testschema, how will be $id value in json schema file
$id:"http://redfish.dmtf.org/schemas/v1/testschema.v1_0_0.json" or $id:"/schemas/v1/testschema.v1_0_0.json" or $id:"/redfish/v1/JsonSchemas/testschema.v1_0_0.json"
Thanks, Mani
|
|
|
Post by mraineri on Mar 27, 2023 20:12:51 GMT
If the schema file is not published on any external website, but hosted on-chip, the second and third options are both valid. However, keep in mind the recommendation in the spec for where to place local schema copies is under "/redfish/v1/Schemas". So, it would be good to make the URI of the schema file "/redfish/v1/Schemas/testschema.v1_0_0.json".
|
|