schemas: Intel Fan Connector
Add a proper subschema for IntelFanConnector. Remove status from legacy
json because IntelFanConnector was the only user. Pwm and Tachs have
other users so we can't remove those until those classes have proper
subschema.
Change-Id: Ic4f330fbcfe6ff711ff9aef3fd65d138b145303a
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/schemas/Intel.json b/schemas/Intel.json
new file mode 100644
index 0000000..193fc18
--- /dev/null
+++ b/schemas/Intel.json
@@ -0,0 +1,37 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "definitions": {
+ "IntelFanConnector": {
+ "properties": {
+ "LED": {
+ "type": "string"
+ },
+ "Name": {
+ "type": "string"
+ },
+ "Pwm": {
+ "type": "number"
+ },
+ "Tachs": {
+ "items": {
+ "type": "number"
+ },
+ "type": "array"
+ },
+ "Type": {
+ "enum": [
+ "IntelFanConnector"
+ ]
+ }
+ },
+ "required": [
+ "Name",
+ "Type",
+ "Status",
+ "Pwm",
+ "Tachs"
+ ],
+ "type": "object"
+ }
+ }
+}