|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft-07/schema", |
| 3 | + "$id": "https://bitcart.ai/schemas/plugin/1.3.0/plugin.schema.json", |
| 4 | + "title": "Plugin", |
| 5 | + "description": "Plugin metadata", |
| 6 | + "type": "object", |
| 7 | + "properties": { |
| 8 | + "name": { |
| 9 | + "description": "Plugin name", |
| 10 | + "type": "string" |
| 11 | + }, |
| 12 | + "author": { |
| 13 | + "description": "Plugin author. Used to install namespaced packages", |
| 14 | + "type": "string" |
| 15 | + }, |
| 16 | + "version": { |
| 17 | + "description": "Plugin version", |
| 18 | + "type": "string" |
| 19 | + }, |
| 20 | + "license": { |
| 21 | + "description": "Plugin license", |
| 22 | + "type": "string" |
| 23 | + }, |
| 24 | + "website": { |
| 25 | + "description": "Plugin website", |
| 26 | + "type": "string" |
| 27 | + }, |
| 28 | + "source_url": { |
| 29 | + "description": "Plugin source code URL", |
| 30 | + "type": "string" |
| 31 | + }, |
| 32 | + "docs_url": { |
| 33 | + "description": "Plugin documentation URL", |
| 34 | + "type": "string" |
| 35 | + }, |
| 36 | + "description": { |
| 37 | + "description": "Plugin description", |
| 38 | + "type": "string" |
| 39 | + }, |
| 40 | + "constraints": { |
| 41 | + "description": "Plugin constraints", |
| 42 | + "type": "object", |
| 43 | + "properties": { |
| 44 | + "bitcart": { |
| 45 | + "description": "Bitcart version constraint", |
| 46 | + "type": "string" |
| 47 | + } |
| 48 | + }, |
| 49 | + "required": ["bitcart"] |
| 50 | + }, |
| 51 | + "installs": { |
| 52 | + "description": "Plugin installable parts", |
| 53 | + "type": "array", |
| 54 | + "items": { |
| 55 | + "type": "object", |
| 56 | + "properties": { |
| 57 | + "type": { |
| 58 | + "description": "Installation type", |
| 59 | + "type": "string", |
| 60 | + "enum": ["admin", "store", "backend", "daemon", "docker"] |
| 61 | + }, |
| 62 | + "path": { |
| 63 | + "description": "Installation path", |
| 64 | + "type": "string" |
| 65 | + } |
| 66 | + }, |
| 67 | + "required": ["type", "path"] |
| 68 | + } |
| 69 | + } |
| 70 | + }, |
| 71 | + "required": ["name", "author", "version", "constraints", "installs"] |
| 72 | +} |
0 commit comments