ToolJet/frontend/src/Editor/DataSourceManager/SourceComponents/Database/Elasticsearch.schema.json
Gandharv f09542180f
add datasource type into individual schema (#762)
* feat: add datasource type into individual schema

* add active class when dark mode

* fix: change type key to source
2021-09-22 10:43:12 +05:30

49 lines
1.2 KiB
JSON

{
"$schema": "https://json-schema.org/",
"$id": "https://tooljet.io/Elasticsearch.schema.json",
"title": "Elastic search datasource",
"description": "A schema defining elastic search datasource",
"type": "object",
"source": {
"name": "Elasticsearch",
"kind": "elasticsearch",
"exposedVariables": {
"isLoading": {},
"data": {},
"rawData": {}
},
"options": {
"host": { "type": "string" },
"port": { "type": "string" },
"username": { "type": "string" },
"password": { "type": "string", "encrypted": true }
}
},
"properties": {
"host": {
"$label": "Host",
"$key": "host",
"type": "text",
"description": "Enter host"
},
"port": {
"$label": "Port",
"$key": "port",
"type": "text",
"description": "Enter port"
},
"username": {
"$label": "Username",
"$key": "username",
"type": "text",
"description": "Enter username"
},
"password": {
"$label": "Password",
"$key": "password",
"type": "password",
"description": "Enter password"
}
},
"required": ["scheme", "host", "port", "password"]
}