Skip to content

Commit

Permalink
Update jsonx/patch.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Hungershausen <[email protected]>
  • Loading branch information
hperl and jonas-jonas authored Jan 7, 2025
1 parent 151d36d commit 4ed54d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsonx/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func isElementAccess(path string) bool {

// ApplyJSONPatch applies a JSON patch to an object. It returns an error if the
// patch is invalid or if the patch includes paths that are denied. denyPaths is
// a list of path globss (interpreted with [glob.Compile] that are not allowed to
// a list of path globs (interpreted with [glob.Compile] that are not allowed to
// be patched.
func ApplyJSONPatch(p json.RawMessage, object interface{}, denyPaths ...string) error {
patch, err := jsonpatch.DecodePatch(p)
Expand Down

0 comments on commit 4ed54d5

Please sign in to comment.