Skip to content

Commit

Permalink
Merge pull request #1 from JackScott7/gh-pages
Browse files Browse the repository at this point in the history
Updated it_macros.json schema based on recent changes
  • Loading branch information
JackScott7 authored Nov 4, 2024
2 parents e1dd38a + 80bf7b9 commit 6a1d5f3
Showing 1 changed file with 126 additions and 0 deletions.
126 changes: 126 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"macros": {
"type": "object",
"properties": {
"word": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"action": {
"type": "object",
"properties": {
"#ite": {
"type": "string"
},
"#cb": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
},
"required": [
"#ite",
"#cb"
]
}
},
"required": [
"word",
"action"
]
},
"macro_settings": {
"type": "object",
"properties": {
"shuffle": {
"type": "object",
"properties": {
"enabled": {
"type": "string",
"enum": [
"true",
"false"
]
},
"shuffle_macros": {
"type": "array",
"items": {
"type": "string",
"pattern": "^![a-zA-Z0-9]+$"
}
}
},
"required": [
"enabled",
"shuffle_macros"
]
}
},
"required": [
"shuffle"
]
},
"extension_settings": {
"type": "object",
"properties": {
"enabled": {
"type": "string",
"enum": [
"true",
"false"
]
},
"extensions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"print",
"action"
]
},
"cmd": {
"type": "string"
},
"args": {
"type": "array",
"items": {
"type": "string"
}
}
},
"patternProperties": {
"^@": {
"type": "string"
}
},
"required": [
"type",
"cmd",
"args"
]
}
}
},
"required": [
"enabled",
"extensions"
]
}
},
"required": [
"macros",
"macro_settings",
"extension_settings"
],
"additionalProperties": false
}

0 comments on commit 6a1d5f3

Please sign in to comment.