summaryrefslogtreecommitdiff
path: root/src/commands/georadius_ro.json
diff options
context:
space:
mode:
authorguybe7 <guy.benoish@redislabs.com>2022-08-18 15:09:36 +0300
committerGitHub <noreply@github.com>2022-08-18 15:09:36 +0300
commit223046ec9a25c1021f8d89a7edd1c4e4ff2c9ad9 (patch)
tree9b426ce705ccdb166a46982cdd8d771f127a97e4 /src/commands/georadius_ro.json
parentfc3956e8f4d35ea66967bb26f26175ad184f8978 (diff)
downloadredis-223046ec9a25c1021f8d89a7edd1c4e4ff2c9ad9.tar.gz
Repurpose redisCommandArg's name as the unique ID (#11051)
This PR makes sure that "name" is unique for all arguments in the same level (i.e. all args of a command and all args within a block/oneof). This means several argument with identical meaning can be referred to together, but also if someone needs to refer to a specific one, they can use its full path. In addition, the "display_text" field has been added, to be used by redis.io in order to render the syntax of the command (for the vast majority it is identical to "name" but sometimes we want to use a different string that is not "name") The "display" field is exposed via COMMAND DOCS and will be present for every argument, except "oneof" and "block" (which are container arguments) Other changes: 1. Make sure we do not have any container arguments ("oneof" or "block") that contain less than two sub-args (otherwise it doesn't make sense) 2. migrate.json: both AUTH and AUTH2 should not be "optional" 3. arg names cannot contain underscores, and force the usage of hyphens (most of these were a result of the script that generated the initial json files from redis.io commands.json).
Diffstat (limited to 'src/commands/georadius_ro.json')
-rw-r--r--src/commands/georadius_ro.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/georadius_ro.json b/src/commands/georadius_ro.json
index 9859d3067..4696f78b8 100644
--- a/src/commands/georadius_ro.json
+++ b/src/commands/georadius_ro.json
@@ -106,7 +106,7 @@
"optional": true
},
{
- "name": "count",
+ "name": "count-block",
"type": "block",
"optional": true,
"arguments": [