-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.manifest.schema.json
More file actions
110 lines (110 loc) · 3.12 KB
/
Copy pathplugin.manifest.schema.json
File metadata and controls
110 lines (110 loc) · 3.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/fecommunity/reactpress/blob/master/plugins/plugin.manifest.schema.json",
"title": "Plugin Manifest",
"description": "Portable plugin manifest for ReactPress. Stored at plugins/{id}/plugin.json.",
"type": "object",
"additionalProperties": false,
"required": ["id", "name", "version"],
"properties": {
"$schema": { "type": "string" },
"id": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
"description": "Plugin slug, kebab-case."
},
"name": { "type": "string", "minLength": 1 },
"version": {
"type": "string",
"pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$"
},
"description": { "type": "string" },
"author": { "type": "string" },
"requires": { "type": "string" },
"requiresPlugins": {
"type": "array",
"items": { "type": "string", "minLength": 1 },
"uniqueItems": true
},
"server": {
"type": "object",
"required": ["module"],
"properties": {
"module": { "type": "string", "minLength": 1 },
"hooks": {
"type": "object",
"properties": {
"subscribe": {
"type": "array",
"items": { "type": "string", "minLength": 1 }
},
"provide": {
"type": "array",
"items": { "type": "string", "minLength": 1 }
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"admin": {
"type": "object",
"properties": {
"slots": {
"type": "object",
"properties": {
"subscribe": {
"type": "array",
"items": {
"type": "string",
"enum": [
"article.editor.meta.afterSummary",
"article.editor.sidebar.afterPublish"
]
},
"uniqueItems": true,
"minItems": 1
}
},
"additionalProperties": false
},
"menu": {
"type": "object",
"required": ["title", "path"],
"properties": {
"parent": { "type": "string" },
"title": { "type": "string" },
"path": { "type": "string" },
"permission": { "type": "string" },
"sort": { "type": "number" }
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"settings": {
"type": "object",
"properties": {
"schema": { "type": "object" }
},
"additionalProperties": false
},
"permissions": {
"type": "array",
"items": { "type": "string", "minLength": 1 },
"uniqueItems": true
},
"capabilities": {
"type": "object",
"properties": {
"headless": { "type": "boolean" },
"network": { "type": "boolean" },
"filesystem": { "type": "boolean" },
"database": { "type": "boolean" }
},
"additionalProperties": false
}
}
}