Minor schema fixes (#14200)

Validating using AJV
master
Yan-Fa Li 2022-06-17 18:42:32 -07:00 committed by GitHub
parent fe680a8568
commit 7b3ee1db8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 14 deletions

View File

@ -41,8 +41,8 @@
"breathing_period": {"$ref": "qmk.definitions.v1#/unsigned_int_8"}, "breathing_period": {"$ref": "qmk.definitions.v1#/unsigned_int_8"},
"levels": { "levels": {
"type": "number", "type": "number",
"min": 1, "minimum": 1,
"max": 31, "maximum": 31,
"multipleOf": 1 "multipleOf": 1
}, },
"pin": {"$ref": "qmk.definitions.v1#/mcu_pin"}, "pin": {"$ref": "qmk.definitions.v1#/mcu_pin"},
@ -159,7 +159,7 @@
"maxItems": 2, "maxItems": 2,
"items": { "items": {
"type": "number", "type": "number",
"min": 0, "minimum": 0,
"multipleOf": 1 "multipleOf": 1
} }
}, },
@ -235,7 +235,7 @@
"maxItems": 2, "maxItems": 2,
"items": { "items": {
"type": "number", "type": "number",
"min": 0, "minimum": 0,
"multipleOf": 1 "multipleOf": 1
} }
}, },
@ -263,7 +263,7 @@
"maxItems": 2, "maxItems": 2,
"items": { "items": {
"type": "number", "type": "number",
"min": 0, "minimum": 0,
"multipleOf": 1 "multipleOf": 1
} }
}, },
@ -295,8 +295,8 @@
"enabled": {"type": "boolean"}, "enabled": {"type": "boolean"},
"max": { "max": {
"type": "number", "type": "number",
"min": 1, "minimum": 1,
"max": 32, "maximum": 32,
"multipleOf": 1 "multipleOf": 1
}, },
"override_rgb": {"type": "boolean"} "override_rgb": {"type": "boolean"}
@ -311,8 +311,8 @@
"split": {"type": "boolean"}, "split": {"type": "boolean"},
"split_count": { "split_count": {
"type": "array", "type": "array",
"minLength": 2, "minItems": 2,
"maxLength": 2, "maxItems": 2,
"items": {"$ref": "qmk.definitions.v1#/unsigned_int"} "items": {"$ref": "qmk.definitions.v1#/unsigned_int"}
} }
} }
@ -326,15 +326,15 @@
"idle_timeout": {"$ref": "qmk.definitions.v1#/unsigned_int"}, "idle_timeout": {"$ref": "qmk.definitions.v1#/unsigned_int"},
"unlock_sequence": { "unlock_sequence": {
"type": "array", "type": "array",
"minLength": 1, "minItems": 1,
"maxLength": 5, "maxItems": 5,
"items": { "items": {
"type": "array", "type": "array",
"minItems": 2, "minItems": 2,
"maxItems": 2, "maxItems": 2,
"items": { "items": {
"type": "number", "type": "number",
"min": 0, "minimum": 0,
"multipleOf": 1 "multipleOf": 1
} }
} }
@ -376,8 +376,8 @@
"soft_serial_pin": {"$ref": "qmk.definitions.v1#/mcu_pin"}, "soft_serial_pin": {"$ref": "qmk.definitions.v1#/mcu_pin"},
"soft_serial_speed": { "soft_serial_speed": {
"type": "number", "type": "number",
"min": 0, "minimum": 0,
"max": 5, "maximum": 5,
"multipleOf": 1 "multipleOf": 1
}, },
"transport": { "transport": {