Refactor schemas

This commit is contained in:
LordGrey 2023-03-26 18:35:35 +00:00
parent 93a0c60edb
commit 20bd8edb5f
3 changed files with 14 additions and 12 deletions

View File

@ -5,19 +5,21 @@
"output": { "output": {
"type": "string", "type": "string",
"title":"edt_dev_spec_outputPath_title", "title":"edt_dev_spec_outputPath_title",
"default":"auto" "propertyOrder": 1
}, },
"rate": { "rate": {
"type": "integer", "type": "integer",
"title": "edt_dev_spec_baudrate_title", "title": "edt_dev_spec_baudrate_title",
"default": 5000000 "default": 5000000,
"propertyOrder": 2
}, },
"brightnessControlMaxLevel": { "brightnessControlMaxLevel": {
"type": "integer", "type": "integer",
"title": "edt_conf_color_brightness_title", "title": "edt_conf_color_brightness_title",
"default": 31, "default": 31,
"minimum": 1, "minimum": 1,
"maximum": 31 "maximum": 31,
"propertyOrder": 3
} }
}, },

View File

@ -5,7 +5,6 @@
"output": { "output": {
"type": "string", "type": "string",
"title": "edt_dev_spec_outputPath_title", "title": "edt_dev_spec_outputPath_title",
"default": "auto",
"required": true, "required": true,
"propertyOrder": 1 "propertyOrder": 1
}, },
@ -32,11 +31,11 @@
"subtract_minimum", "subtract_minimum",
"sub_min_cool_adjust", "sub_min_cool_adjust",
"sub_min_warm_adjust", "sub_min_warm_adjust",
"hyperserial_cold_white", "cold_white",
"hyperserial_neutral_white", "neutral_white",
"wled_auto", "auto",
"wled_auto_max", "auto_max",
"wled_auto_accurate", "auto_accurate",
"white_off" "white_off"
], ],
"default": "white_off", "default": "white_off",
@ -53,7 +52,7 @@
"edt_dev_enum_white_off" "edt_dev_enum_white_off"
] ]
}, },
"propertyOrder": 5 "propertyOrder": 4
} }
}, },
"additionalProperties": true "additionalProperties": true

View File

@ -5,14 +5,15 @@
"output": { "output": {
"type": "string", "type": "string",
"title": "edt_dev_spec_outputPath_title", "title": "edt_dev_spec_outputPath_title",
"default": "auto" "propertyOrder": 1
}, },
"rate": { "rate": {
"type": "integer", "type": "integer",
"title": "edt_dev_spec_baudrate_title", "title": "edt_dev_spec_baudrate_title",
"default": 3075000, "default": 3075000,
"minimum": 2106000, "minimum": 2106000,
"maximum": 3075000 "maximum": 3075000,
"propertyOrder": 2
} }
}, },
"additionalProperties": true "additionalProperties": true