mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-02-27 01:56:43 +00:00
Validate more
This commit is contained in:
parent
f44a988476
commit
d83616dce4
@ -3,6 +3,14 @@
|
|||||||
"$id": "qmk.xap.v1",
|
"$id": "qmk.xap.v1",
|
||||||
"title": "XAP Spec",
|
"title": "XAP Spec",
|
||||||
"definitions": {
|
"definitions": {
|
||||||
|
"int_key": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^[0-8]$"
|
||||||
|
},
|
||||||
|
"constant": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^[A-Z_]*$"
|
||||||
|
},
|
||||||
"data_type": {
|
"data_type": {
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
@ -68,7 +76,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"define": {
|
"define": {
|
||||||
"type": "string"
|
"$ref": "#/definitions/constant"
|
||||||
},
|
},
|
||||||
"permissions": {
|
"permissions": {
|
||||||
"$ref": "#/definitions/permission"
|
"$ref": "#/definitions/permission"
|
||||||
@ -126,7 +134,7 @@
|
|||||||
"$ref": "qmk.definitions.v1#/bcd_version"
|
"$ref": "qmk.definitions.v1#/bcd_version"
|
||||||
},
|
},
|
||||||
"define": {
|
"define": {
|
||||||
"type": "string"
|
"$ref": "#/definitions/constant"
|
||||||
},
|
},
|
||||||
"uses": {
|
"uses": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@ -189,12 +197,12 @@
|
|||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"properties": {
|
"properties": {
|
||||||
"define_prefix": {
|
"define_prefix": {
|
||||||
"type": "string"
|
"$ref": "#/definitions/constant"
|
||||||
},
|
},
|
||||||
"bits": {
|
"bits": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"propertyNames": {
|
"propertyNames": {
|
||||||
"type": "string"
|
"$ref": "#/definitions/int_key"
|
||||||
},
|
},
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@ -204,7 +212,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"define": {
|
"define": {
|
||||||
"type": "string"
|
"$ref": "#/definitions/constant"
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@ -219,7 +227,7 @@
|
|||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"properties": {
|
"properties": {
|
||||||
"define_prefix": {
|
"define_prefix": {
|
||||||
"type": "string"
|
"$ref": "#/definitions/constant"
|
||||||
},
|
},
|
||||||
"messages": {
|
"messages": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@ -234,7 +242,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"define": {
|
"define": {
|
||||||
"type": "string"
|
"$ref": "#/definitions/constant"
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
Loading…
Reference in New Issue
Block a user