ToolJet/plugins/schemas/manifest.schema.json
Gandharv 27c91a008a
Add json schema for vscode autocomplete (#1962)
* add json schema

* update schema

* update link
2022-01-27 10:55:16 +05:30

68 lines
No EOL
1.4 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema",
"title": "Manifest schema",
"description": "Tooljet manifest schema",
"type": "object",
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string",
"description": "path to the JSON-schema to use for this file"
},
"title": {
"type": "string",
"description": "title of datasource"
},
"description": {
"type": "string",
"description": "description of datasource"
},
"type": {
"type": "array",
"items": {
"$ref": "#/definitions/type"
}
},
"defaults": {
"type": "object",
"additionalProperties": false,
"properties": {}
},
"source": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"kind": {
"type": "string"
},
"exposedVariables": {
"type": "object",
"additionalProperties": false,
"properties": {
"isLoading": {
"type": "string"
},
"data": {
"type": "string"
},
"rawData": {
"type": "string"
}
}
}
}
}
},
"definitions": {
"type": {
"enum": [
"api",
"cloud-storage",
"database"
]
}
}
}