Browse Source

[Fix] Fix usage of the Redis config schema as `extra_fields`

Issue: #4318
tags/3.5
Vsevolod Stakhov 1 year ago
parent
commit
838f958170
No account linked to committer's email address
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      lualib/lua_redis.lua

+ 7
- 0
lualib/lua_redis.lua View File

@@ -39,6 +39,13 @@ local common_schema = ts.shape {
}

local config_schema =
-- Allow separate read/write servers to allow usage in the `extra_fields`
ts.shape({
read_servers = ts.string + ts.array_of(ts.string),
}, {extra_fields = common_schema}) +
ts.shape({
write_servers = ts.string + ts.array_of(ts.string),
}, {extra_fields = common_schema}) +
ts.shape({
read_servers = ts.string + ts.array_of(ts.string),
write_servers = ts.string + ts.array_of(ts.string),

Loading…
Cancel
Save