Reapply "Fix wrong memorystore nats schema"

This reverts commit ea7660ddb3.
This commit is contained in:
Michael Panzlaff
2025-10-28 13:14:33 +01:00
parent 3c1a7e0171
commit 2287f4493a

View File

@@ -51,35 +51,41 @@ const configSchema = `{
}, },
"nats": { "nats": {
"description": "Configuration for accepting published data through NATS.", "description": "Configuration for accepting published data through NATS.",
"type": "object", "type": "array",
"properties": { "items": {
"address": { "type": "object",
"description": "Address of the NATS server.", "properties": {
"type": "string" "address": {
}, "description": "Address of the NATS server.",
"username": { "type": "string"
"description": "Optional: If configured with username/password method.", },
"type": "string" "username": {
}, "description": "Optional: If configured with username/password method.",
"password": { "type": "string"
"description": "Optional: If configured with username/password method.", },
"type": "string" "password": {
}, "description": "Optional: If configured with username/password method.",
"creds-file-path": { "type": "string"
"description": "Optional: If configured with Credential File method. Path to your NATS cred file.", },
"type": "string" "creds-file-path": {
}, "description": "Optional: If configured with Credential File method. Path to your NATS cred file.",
"subscriptions": { "type": "string"
"description": "Array of various subscriptions. Allows to subscibe to different subjects and publishers.", },
"type": "object", "subscriptions": {
"properties": { "description": "Array of various subscriptions. Allows to subscibe to different subjects and publishers.",
"subscribe-to": { "type": "array",
"description": "Channel name", "items": {
"type": "string" "type": "object",
}, "properties": {
"cluster-tag": { "subscribe-to": {
"description": "Optional: Allow lines without a cluster tag, use this as default", "description": "Channel name",
"type": "string" "type": "string"
},
"cluster-tag": {
"description": "Optional: Allow lines without a cluster tag, use this as default",
"type": "string"
}
}
} }
} }
} }