Fix JsonSchema indexes
JsonSchema was throwing errors in the validator, so implement changes to
the update script to add the appropiate indexes.
Tested by:
Schema validator passes on the JsonSchema Fields
Change-Id: I6cb2737901b55c1089aef744d3ce3c3dfe13f17f
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
diff --git a/static/redfish/v1/JsonSchemas/PhysicalContext/PhysicalContext.json b/static/redfish/v1/JsonSchemas/PhysicalContext/PhysicalContext.json
new file mode 100644
index 0000000..b26e8ee
--- /dev/null
+++ b/static/redfish/v1/JsonSchemas/PhysicalContext/PhysicalContext.json
@@ -0,0 +1,61 @@
+{
+ "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema.v1_3_0.json",
+ "copyright": "Copyright 2014-2017 Distributed Management Task Force, Inc. (DMTF). For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
+ "definitions": {
+ "PhysicalContext": {
+ "deprecated": "This definition has been moved to the unversioned namespace so that external references can pick up changes over time.",
+ "enum": [
+ "Room",
+ "Intake",
+ "Exhaust",
+ "Front",
+ "Back",
+ "Upper",
+ "Lower",
+ "CPU",
+ "GPU",
+ "Backplane",
+ "SystemBoard",
+ "PowerSupply",
+ "VoltageRegulator",
+ "StorageDevice",
+ "NetworkingDevice",
+ "ComputeBay",
+ "StorageBay",
+ "NetworkBay",
+ "ExpansionBay",
+ "PowerSupplyBay",
+ "Memory",
+ "Chassis",
+ "Fan"
+ ],
+ "enumDescriptions": {
+ "Back": "The back of the chassis.",
+ "Backplane": "A backplane within the chassis.",
+ "CPU": "A Processor (CPU).",
+ "Chassis": "The entire chassis.",
+ "ComputeBay": "Within a compute bay.",
+ "Exhaust": "The exhaust point of the chassis.",
+ "ExpansionBay": "Within an expansion bay.",
+ "Fan": "A fan.",
+ "Front": "The front of the chassis.",
+ "GPU": "A Graphics Processor (GPU).",
+ "Intake": "The intake point of the chassis.",
+ "Lower": "The lower portion of the chassis.",
+ "Memory": "A memory device.",
+ "NetworkBay": "Within a networking bay.",
+ "NetworkingDevice": "A networking device.",
+ "PowerSupply": "A power supply.",
+ "PowerSupplyBay": "Within a power supply bay.",
+ "Room": "The room.",
+ "StorageBay": "Within a storage bay.",
+ "StorageDevice": "A storage device.",
+ "SystemBoard": "The system board (PCB).",
+ "Upper": "The upper portion of the chassis.",
+ "VoltageRegulator": "A voltage regulator device."
+ },
+ "type": "string"
+ }
+ },
+ "title": "#PhysicalContext.v1_3_0"
+}
\ No newline at end of file
diff --git a/static/redfish/v1/JsonSchemas/PhysicalContext/index.json b/static/redfish/v1/JsonSchemas/PhysicalContext/index.json
index b26e8ee..10b6fc9 100644
--- a/static/redfish/v1/JsonSchemas/PhysicalContext/index.json
+++ b/static/redfish/v1/JsonSchemas/PhysicalContext/index.json
@@ -1,61 +1,21 @@
{
- "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema.v1_3_0.json",
- "copyright": "Copyright 2014-2017 Distributed Management Task Force, Inc. (DMTF). For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
- "definitions": {
- "PhysicalContext": {
- "deprecated": "This definition has been moved to the unversioned namespace so that external references can pick up changes over time.",
- "enum": [
- "Room",
- "Intake",
- "Exhaust",
- "Front",
- "Back",
- "Upper",
- "Lower",
- "CPU",
- "GPU",
- "Backplane",
- "SystemBoard",
- "PowerSupply",
- "VoltageRegulator",
- "StorageDevice",
- "NetworkingDevice",
- "ComputeBay",
- "StorageBay",
- "NetworkBay",
- "ExpansionBay",
- "PowerSupplyBay",
- "Memory",
- "Chassis",
- "Fan"
- ],
- "enumDescriptions": {
- "Back": "The back of the chassis.",
- "Backplane": "A backplane within the chassis.",
- "CPU": "A Processor (CPU).",
- "Chassis": "The entire chassis.",
- "ComputeBay": "Within a compute bay.",
- "Exhaust": "The exhaust point of the chassis.",
- "ExpansionBay": "Within an expansion bay.",
- "Fan": "A fan.",
- "Front": "The front of the chassis.",
- "GPU": "A Graphics Processor (GPU).",
- "Intake": "The intake point of the chassis.",
- "Lower": "The lower portion of the chassis.",
- "Memory": "A memory device.",
- "NetworkBay": "Within a networking bay.",
- "NetworkingDevice": "A networking device.",
- "PowerSupply": "A power supply.",
- "PowerSupplyBay": "Within a power supply bay.",
- "Room": "The room.",
- "StorageBay": "Within a storage bay.",
- "StorageDevice": "A storage device.",
- "SystemBoard": "The system board (PCB).",
- "Upper": "The upper portion of the chassis.",
- "VoltageRegulator": "A voltage regulator device."
- },
- "type": "string"
+ "@odata.context": "/redfish/v1/$metadata#JsonSchemaFile.JsonSchemaFile",
+ "@odata.id": "/redfish/v1/JSONSchemas/PhysicalContext",
+ "@odata.type": "#JsonSchemaFile.v1_0_2.JsonSchemaFile",
+ "Name": "PhysicalContext Schema File",
+ "Schema": "#PhysicalContext.PhysicalContext",
+ "Description": "PhysicalContext Schema File Location",
+ "Id": "PhysicalContext",
+ "Languages": [
+ "en"
+ ],
+ "Languages@odata.count": 1,
+ "Location": [
+ {
+ "Language": "en",
+ "PublicationUri": "http://redfish.dmtf.org/schemas/v1/PhysicalContext.json",
+ "Uri": "/redfish/v1/JSONSchemas/PhysicalContext/PhysicalContext.json"
}
- },
- "title": "#PhysicalContext.v1_3_0"
+ ],
+ "Location@odata.count": 1
}
\ No newline at end of file