Implement JsonSchema endpoint
This patchset implements JsonSchema support, and automates our update
of the XML metadata, and Json schema files in the future by way of a
python script.
Change-Id: Iec6f580d10736678149db18d87be2f140b535be9
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/static/redfish/v1/JsonSchemas/odata/index.json b/static/redfish/v1/JsonSchemas/odata/index.json
new file mode 100644
index 0000000..d2c6e46
--- /dev/null
+++ b/static/redfish/v1/JsonSchemas/odata/index.json
@@ -0,0 +1,48 @@
+{
+ "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema.v1_3_0.json",
+ "definitions": {
+ "context": {
+ "type": "string",
+ "format": "uri",
+ "readonly": true,
+ "description": "The OData description of a payload.",
+ "longDescription": "The value of this property shall be the context URL that describes the resource according to OData-Protocol and shall be of the form defined in the Redfish specification."
+ },
+ "id": {
+ "type": "string",
+ "format": "uri",
+ "readonly": true,
+ "description": "The unique identifier for a resource.",
+ "longDescription": "The value of this property shall be the unique identifier for the resource and it shall be of the form defined in the Redfish specification."
+ },
+ "idRef": {
+ "type": "object",
+ "properties": {
+ "@odata.id": {
+ "$ref": "#/definitions/id"
+ }
+ },
+ "additionalProperties": false,
+ "description": "A reference to a resource.",
+ "longDescription": "The value of this property shall be used for references to a resource."
+ },
+ "type": {
+ "type": "string",
+ "readonly": true,
+ "description": "The type of a resource.",
+ "longDescription": "The value of this property shall be an absolute URL that specifies the type of the resource and it shall be of the form defined in the Redfish specification."
+ },
+ "count": {
+ "type": "number",
+ "readonly": true,
+ "description": "The number of items in a collection.",
+ "longDescription": "The value of this property shall be an integer representing the number of items in a collection."
+ },
+ "etag": {
+ "type": "string",
+ "readonly": true,
+ "description": "The current ETag of the resource.",
+ "longDescription": "The value of this property shall be a string that is defined by the ETag HTTP header definition in RFC7232."
+ }
+ }
+}