Skip to content

Commit

Permalink
Plugin schema 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNaif2018 committed Aug 26, 2024
1 parent 8bd28b8 commit c570baf
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions static/schemas/plugin/1.3.0/plugin.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"$schema": "https://json-schema.org/draft-07/schema",
"$id": "https://bitcart.ai/schemas/plugin/1.3.0/plugin.schema.json",
"title": "Plugin",
"description": "Plugin metadata",
"type": "object",
"properties": {
"name": {
"description": "Plugin name",
"type": "string"
},
"author": {
"description": "Plugin author. Used to install namespaced packages",
"type": "string"
},
"version": {
"description": "Plugin version",
"type": "string"
},
"license": {
"description": "Plugin license",
"type": "string"
},
"website": {
"description": "Plugin website",
"type": "string"
},
"source_url": {
"description": "Plugin source code URL",
"type": "string"
},
"docs_url": {
"description": "Plugin documentation URL",
"type": "string"
},
"description": {
"description": "Plugin description",
"type": "string"
},
"constraints": {
"description": "Plugin constraints",
"type": "object",
"properties": {
"bitcart": {
"description": "Bitcart version constraint",
"type": "string"
}
},
"required": ["bitcart"]
},
"installs": {
"description": "Plugin installable parts",
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"description": "Installation type",
"type": "string",
"enum": ["admin", "store", "backend", "daemon", "docker"]
},
"path": {
"description": "Installation path",
"type": "string"
}
},
"required": ["type", "path"]
}
}
},
"required": ["name", "author", "version", "constraints", "installs"]
}

0 comments on commit c570baf

Please sign in to comment.