Skip to content

0.5.x dev - #179

Open
MrWindlike wants to merge 6 commits into
mainfrom
0.5.x-dev
Open

0.5.x dev#179
MrWindlike wants to merge 6 commits into
mainfrom
0.5.x-dev

Conversation

@MrWindlike

Copy link
Copy Markdown
Collaborator

No description provided.

MrWindlike and others added 6 commits July 29, 2026 15:17
`replacePaths` used to only express `replace` on a dot-separated path.
It now accepts `{ op, path, value? }` objects so `add` and `remove` are
expressible too, while a plain string keeps its old `replace` meaning.

- `path` also accepts a segment array, required for keys containing `.`
  or `/` such as K8s annotations and labels
- JSON Pointer segments are escaped per RFC 6901 (`~` -> `~0`, `/` -> `~1`)
- an explicit `value` takes precedence over reading the submitted spec,
  which allows literals and appending to arrays via a trailing `-`
- the patch document is built by a standalone `buildJsonPatch` so it can
  be verified without going through HTTP
feat: support add/remove ops in JSON patch strategy
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.

2 participants