Created
May 23, 2024 22:41
-
-
Save HuakunShen/2e025c495f50f7c7b5c63be83cbe0c7e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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