Skip to content

The JSON for the JSON.ARRAPPEND command is incorrect #1532

Description

@dwdougherty

A Redis engineer informed me that the JSON for the JSON.ARRAPPEND command (in the commands.json file) isn't correct. In particular, its path argument is listed as optional:

"JSON.ARRAPPEND": {
    "summary": "Append one or more json values into the array at path after the last element in it.",
    "complexity": "O(1) when path is evaluated to a single value...",
    "arguments": [
      {
        "name": "key",
        "type": "key"
      },
      {
        "name": "path",
        "type": "string",
        "optional": true    <---
      },
      {
        "name": "value",
        "type": "string",
        "multiple": true
      }
    ],
    "since": "1.0.0",
    "group": "json"
  }

I'm told that path is not optional but required.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions