|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | + "title": "ECA Plugin Marketplace", |
| 4 | + "description": "Schema for .eca-plugin/marketplace.json plugin registry", |
| 5 | + "type": "object", |
| 6 | + "required": ["plugins"], |
| 7 | + "additionalProperties": false, |
| 8 | + "properties": { |
| 9 | + "plugins": { |
| 10 | + "type": "array", |
| 11 | + "items": { |
| 12 | + "type": "object", |
| 13 | + "required": ["name", "description", "source", "category", "author", "icon"], |
| 14 | + "additionalProperties": false, |
| 15 | + "properties": { |
| 16 | + "name": { |
| 17 | + "type": "string", |
| 18 | + "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$", |
| 19 | + "description": "Unique kebab-case plugin identifier" |
| 20 | + }, |
| 21 | + "description": { |
| 22 | + "type": "string", |
| 23 | + "minLength": 10, |
| 24 | + "description": "One-sentence plugin description" |
| 25 | + }, |
| 26 | + "source": { |
| 27 | + "type": "string", |
| 28 | + "pattern": "^plugins/", |
| 29 | + "description": "Relative path to the plugin directory" |
| 30 | + }, |
| 31 | + "category": { |
| 32 | + "type": "string", |
| 33 | + "enum": ["Development", "Productivity", "Workflow", "Security", "Documentation", "DevOps"], |
| 34 | + "description": "Plugin category" |
| 35 | + }, |
| 36 | + "tags": { |
| 37 | + "type": "array", |
| 38 | + "items": { "type": "string", "pattern": "^[a-z0-9-]+$" }, |
| 39 | + "minItems": 1, |
| 40 | + "description": "Searchable tags" |
| 41 | + }, |
| 42 | + "author": { |
| 43 | + "type": "string", |
| 44 | + "minLength": 1, |
| 45 | + "description": "GitHub username of the plugin author" |
| 46 | + }, |
| 47 | + "icon": { |
| 48 | + "type": "string", |
| 49 | + "minLength": 1, |
| 50 | + "description": "Emoji icon for marketplace display" |
| 51 | + }, |
| 52 | + "featured": { |
| 53 | + "type": "boolean", |
| 54 | + "description": "Whether the plugin is featured in the marketplace" |
| 55 | + } |
| 56 | + } |
| 57 | + } |
| 58 | + } |
| 59 | + } |
| 60 | +} |
0 commit comments