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
v0.37.2
Published
Feb 11, 2022
Platform
windows/amd64
Imports
2 packages
Last checked
19 minutes ago

Tools for package owners.