diff options
author | Leibale Eidelman <me@leibale.com> | 2023-05-09 07:24:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-09 14:24:37 +0300 |
commit | e04ebdb8d3f558b27ecdc6555a33ed91966371cd (patch) | |
tree | b165f7e927d2e9a0213e88ad1a59b8dfdf1582fc /src/commands | |
parent | 6ab2174d37185cd20280ff3e0f7f287ebefd4c92 (diff) | |
download | redis-e04ebdb8d3f558b27ecdc6555a33ed91966371cd.tar.gz |
fix `GEORADIUS[BYMEMBER]` `STORE` & `STOREDIST` args spec (#12151)
in GEO commands, `STORE` and `STOREDIST` are mutually exclusive.
use `oneof` block to contain them
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/georadius.json | 33 | ||||
-rw-r--r-- | src/commands/georadiusbymember.json | 33 |
2 files changed, 38 insertions, 28 deletions
diff --git a/src/commands/georadius.json b/src/commands/georadius.json index 0eb919407..6ced9049c 100644 --- a/src/commands/georadius.json +++ b/src/commands/georadius.json @@ -186,20 +186,25 @@ ] }, { - "token": "STORE", - "name": "storekey", - "display": "key", - "type": "key", - "key_spec_index": 1, - "optional": true - }, - { - "token": "STOREDIST", - "name": "storedistkey", - "display": "key", - "type": "key", - "key_spec_index": 2, - "optional": true + "name": "store", + "type": "oneof", + "optional": true, + "arguments": [ + { + "token": "STORE", + "name": "storekey", + "display": "key", + "type": "key", + "key_spec_index": 1 + }, + { + "token": "STOREDIST", + "name": "storedistkey", + "display": "key", + "type": "key", + "key_spec_index": 2 + } + ] } ], "reply_schema": { diff --git a/src/commands/georadiusbymember.json b/src/commands/georadiusbymember.json index 0a8b27119..4b627419b 100644 --- a/src/commands/georadiusbymember.json +++ b/src/commands/georadiusbymember.json @@ -177,20 +177,25 @@ ] }, { - "token": "STORE", - "name": "storekey", - "display": "key", - "type": "key", - "key_spec_index": 1, - "optional": true - }, - { - "token": "STOREDIST", - "name": "storedistkey", - "display": "key", - "type": "key", - "key_spec_index": 2, - "optional": true + "name": "store", + "type": "oneof", + "optional": true, + "arguments": [ + { + "token": "STORE", + "name": "storekey", + "display": "key", + "type": "key", + "key_spec_index": 1 + }, + { + "token": "STOREDIST", + "name": "storedistkey", + "display": "key", + "type": "key", + "key_spec_index": 2 + } + ] } ], "reply_schema": { |