Skip to content

Commit

Permalink
Fix JSON description of SET command (#1473)
Browse files Browse the repository at this point in the history
In the `arguments` section, the `arguments` key is only used for
arguments of type `block` or `oneof`.

Consequently, the `arguments` given for `IFEQ` are ignored by the
server. However, they lead to strange results when rendering the
command's page for the web documentation.

Fix this by removing `arguments` for `IFEQ`.

Signed-off-by: Simon Baatz <[email protected]>
  • Loading branch information
gmbnomis authored Dec 26, 2024
1 parent bb325bd commit 8b40341
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/commands/set.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,7 @@
"type": "string",
"token": "IFEQ",
"since": "8.1.0",
"summary": "Sets the key's value only if the current value matches the specified comparison value.",
"arguments": [
{
"name": "comparison-value",
"type": "string",
"summary": "The value to compare with the current key's value before setting."
}
]
"summary": "Sets the key's value only if the current value matches the specified comparison value."
}
]
},
Expand Down

0 comments on commit 8b40341

Please sign in to comment.