Skip to content

Instantly share code, notes, and snippets.

@HuakunShen
Created May 23, 2024 22:41
Show Gist options
  • Save HuakunShen/2e025c495f50f7c7b5c63be83cbe0c7e to your computer and use it in GitHub Desktop.
Save HuakunShen/2e025c495f50f7c7b5c63be83cbe0c7e to your computer and use it in GitHub Desktop.
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"description": {
"type": "string"
},
"jarvis": {
"type": "object",
"properties": {
"identifier": {
"type": "string"
},
"icon": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"iconify",
"asset",
"remote-url",
"external-asset"
]
},
"icon": {
"type": "string"
}
},
"required": [
"type",
"icon"
],
"additionalProperties": false
},
"demoImages": {
"type": "array",
"items": {
"type": "string"
}
},
"uiCmds": {
"type": "array",
"items": {
"type": "object",
"properties": {
"main": {
"type": "string"
},
"devMain": {
"type": "string"
},
"name": {
"type": "string"
},
"window": {
"anyOf": [
{
"type": "object",
"properties": {
"width": {
"type": [
"number",
"null"
]
},
"height": {
"type": [
"number",
"null"
]
},
"titleBarStyle": {
"anyOf": [
{
"type": "string",
"enum": [
"visible",
"transparent",
"overlay"
]
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"cmds": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"text",
"regex"
]
},
"value": {
"type": "string"
}
},
"required": [
"type",
"value"
],
"additionalProperties": false
}
}
},
"required": [
"main",
"devMain",
"name",
"cmds"
],
"additionalProperties": false
}
},
"inlineCmds": {
"type": "array",
"items": {
"type": "object",
"properties": {
"main": {
"type": "string"
},
"name": {
"type": "string"
},
"cmds": {
"type": "array",
"items": {
"$ref": "#/properties/jarvis/properties/uiCmds/items/properties/cmds/items"
}
}
},
"required": [
"main",
"name",
"cmds"
],
"additionalProperties": false
}
}
},
"required": [
"identifier",
"icon",
"demoImages",
"uiCmds",
"inlineCmds"
],
"additionalProperties": false
}
},
"required": [
"name",
"version",
"description",
"jarvis"
],
"additionalProperties": true,
"$schema": "http://json-schema.org/draft-07/schema#"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment