summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/plugin.schema
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/plugin.schema')
-rw-r--r--plugins/plugin.schema35
1 files changed, 35 insertions, 0 deletions
diff --git a/plugins/plugin.schema b/plugins/plugin.schema
new file mode 100644
index 00000000000..e6dee563c78
--- /dev/null
+++ b/plugins/plugin.schema
@@ -0,0 +1,35 @@
+{
+ "type": "object",
+ "properties": {
+ "plugin": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "pattern": "^[A-Za-z][0-9A-Za-z_]*$"
+ },
+ "description": {
+ "type": "string"
+ },
+ "version": {
+ "type": "string"
+ },
+ "author": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "pattern": "^(plugin|library)$"
+ },
+ "start": {
+ "type": "string",
+ "pattern": "^(true|false)$"
+ }
+ },
+ "additionalProperties": false,
+ "required": [ "name", "description", "version", "author", "type" ]
+ }
+ },
+ "additionalProperties": false,
+ "required": [ "plugin" ]
+}