Make stepwise configuration writeable
Add schema file and add to writeable array
Tested-by: Verified types change to writeable
Change-Id: Ie089f4e221e2651afb0172a9314130e527728f27
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/schemas/Stepwise.json b/schemas/Stepwise.json
new file mode 100644
index 0000000..51853e8
--- /dev/null
+++ b/schemas/Stepwise.json
@@ -0,0 +1,52 @@
+{
+ "$schema": "http://json-schema.org/schema#",
+ "type": "object",
+ "properties": {
+ "Inputs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "Name": {
+ "type": "string"
+ },
+ "NegativeHysteresis": {
+ "type": "integer"
+ },
+ "Output": {
+ "type": "array",
+ "items": {
+ "type": "number"
+ }
+ },
+ "PositiveHysteresis": {
+ "type": "integer"
+ },
+ "Reading": {
+ "type": "array",
+ "items": {
+ "type": "number"
+ }
+ },
+ "Type": {
+ "type": "string"
+ },
+ "Zones": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "Inputs",
+ "Name",
+ "NegativeHysteresis",
+ "Output",
+ "PositiveHysteresis",
+ "Reading",
+ "Type",
+ "Zones"
+ ]
+}