ToolJet/frontend/src/Editor/DataSourceManager/SourceComponents/Database/Redis.schema.json
Gandharv b61d07e0c5
Refactor: move default options to schema files (#1425)
* refactor: move default options to schema files

* fix: use options instead of source.options

* add default empty object when defaults not present in schema

* add null checks for gsheets and slack component

* removes un-necessary console log

* delete constancts file

* delete default options file for data sources
2021-11-22 13:52:32 +05:30

55 lines
1.3 KiB
JSON

{
"$schema": "https://json-schema.org/",
"$id": "https://tooljet.io/Redis.schema.json",
"title": "Redis datasource",
"description": "A schema defining redis datasource",
"type": "object",
"source": {
"name": "Redis",
"kind": "redis",
"exposedVariables": {
"isLoading": {},
"data": {},
"rawData": {}
},
"options": {
"host": { "type": "string" },
"port": { "type": "string" },
"username": { "type": "string" },
"password": { "type": "string", "encrypted": true }
}
},
"defaults": {
"host": { "value": "localhost" },
"port": { "value": 6379 },
"username": { "value": "" },
"password": { "value": "" }
},
"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"]
}