Skip to content

DEV: (cmds) update JSON commands return info and add new one - #4211

Merged
dwdougherty merged 1 commit into
mainfrom
json-num-commands-return-info
Oct 6, 2026
Merged

dwdougherty merged 1 commit into
mainfrom
json-num-commands-return-info

Conversation

@dwdougherty

@dwdougherty dwdougherty commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Note

Low Risk
Documentation-only changes to command reference pages and a new SVG diagram; no runtime or API implementation in this diff.

Overview
Updates RedisJSON command reference docs to match current return shapes and error behavior for numeric path operations, and documents JSON.NUMPOWBY (RedisJSON 2.0).

JSON.NUMINCRBY and JSON.NUMMULTBY: the Return information sections now describe $ paths as a JSON array (one element per match, empty when nothing matches), clarify that . paths update all matched numbers and return the last new value, and call out simple errors for missing keys, out-of-range results, and non-numeric matches (instead of implying null replies in those cases). RESP3 is documented as a uniform array of integers/doubles/nulls regardless of path syntax.

JSON.NUMMULTBY: removes the deprecated_since: '2.0' frontmatter flag and treats path as a required argument (with key path value ordering in the argument list), dropping the old optional-path/default-root wording.

JSON.NUMPOWBY: adds a full command page (syntax, examples, integer vs float exponent rules, overflow/NaN errors, compatibility table, RESP2/RESP3 return info) plus the json.numpowby.svg railroad diagram.

Reviewed by Cursor Bugbot for commit ac2e3c1. Bugbot is set up for automated code reviews on this repo. Configure here.

@dwdougherty
dwdougherty requested a review from a team October 5, 2026 20:29
@dwdougherty dwdougherty self-assigned this Oct 5, 2026
@dwdougherty dwdougherty added dev cmds oss Redis Open Source labels Oct 5, 2026

@mich-elle-luna mich-elle-luna left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

content looks good to me, but I didn't check preview links as github is sadops :(

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

🧠 Redis Memory

Found 5 related items from repository history (5 new this commit):

Memory updated at ac2e3c1

@dwdougherty
dwdougherty merged commit 4cbff2d into main Oct 6, 2026
112 of 116 checks passed
@dwdougherty
dwdougherty deleted the json-num-commands-return-info branch October 6, 2026 13:53
EliShteinman added a commit to EliShteinman/docs that referenced this pull request Oct 6, 2026
Adds the JSON.NUMPOWBY command page and rewrites the NUMINCRBY/NUMMULTBY return info.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmds dev oss Redis Open Source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants