Skip to content

fix: preserve pointer keys and validate array patch operations - #28

Merged
mstuart merged 1 commit into
mainfrom
codex/review-fixes-20261006
Oct 6, 2026
Merged

mstuart merged 1 commit into
mainfrom
codex/review-fixes-20261006

Conversation

@mstuart

@mstuart mstuart commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

JSON Pointer parsing drops empty-key segments, so diff/patch can update a neighboring field. Preserve empty tokens and reject unsupported root/malformed pointers explicitly.

Validate canonical array indices and bounds before mutation. Array add now inserts instead of overwriting; '-' appends. Add TypeScript overloads for the existing top-level array support and regression coverage for empty keys, insertion, invalid indices, and array declarations. Existing prototype-pollution defenses remain covered.

Validation: local repository lint and git diff --check pass. Runtime and TypeScript declaration tests pass in the Node.js 22/24 CI matrix. CodeQL checks also pass.

@mstuart
mstuart marked this pull request as ready for review October 6, 2026 04:40
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-06T04:43:37.999680Z dcf2d71 Draft marked ready
🔒 Security Review ✅ Completed 2026-10-06T04:43:15.973876Z dcf2d71 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mstuart
mstuart merged commit e9fe1d1 into main Oct 6, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant