package patch

import "github.com/open-policy-agent/opa/internal/json/patch"

Index

Functions

func ParsePatchPathEscaped

func ParsePatchPathEscaped(str string) (path storage.Path, ok bool)

ParsePatchPathEscaped returns a new path for the given escaped str. This is based on storage.ParsePathEscaped so will do URL unescaping of the provided str for backwards compatibility, but also handles the specific escape strings defined in RFC 6901 (JSON Pointer) because that's what's mandated by RFC 6902 (JSON Patch).

Source Files

patch.go

Version
v1.4.2 (latest)
Published
May 2, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
6 hours ago

Tools for package owners.