[Fix]: Property PhysicalContext is invalid "none"
Issue: Redfish validator is throwing error "PhysicalContext:
This type is invalid none" for multiple temperature sensors
Endpoint : /redfish/v1/Chassis/<Baseboard>/Thermal#/Temperatures/
Root Cause : PhysicalContext Schema was missing from redfish schema
metadata
Tested: Redfish validator script passed.
*** /redfish/v1/Chassis/<baseboard>/Thermal#/Temperatures/0
Type (#Thermal.v1_3_0.Temperature), GET SUCCESS (time: 0)
PASS
Signed-off-by: sunitakx <sunitax.kumari@intel.com>
Change-Id: Ifbfe7d96e99030c0c5ba67a1aba5080cd049e57b
diff --git a/static/redfish/v1/JsonSchemas/PhysicalContext/PhysicalContext.json b/static/redfish/v1/JsonSchemas/PhysicalContext/PhysicalContext.json
new file mode 100644
index 0000000..c9ffeee
--- /dev/null
+++ b/static/redfish/v1/JsonSchemas/PhysicalContext/PhysicalContext.json
@@ -0,0 +1,62 @@
+{
+ "$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"
+}
+
diff --git a/static/redfish/v1/JsonSchemas/PhysicalContext/index.json b/static/redfish/v1/JsonSchemas/PhysicalContext/index.json
new file mode 100644
index 0000000..729c0ca
--- /dev/null
+++ b/static/redfish/v1/JsonSchemas/PhysicalContext/index.json
@@ -0,0 +1,22 @@
+{
+ "@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"
+ }
+ ],
+ "Location@odata.count": 1
+}
+