Jsonpatch.Operation protocol (Jsonpatch v1.0.0) View Source

The Operation module is responsible for applying patches. For examples see in the available implementation from this library for this protocol:

  • Jsonpatch.Operation.Add
  • Jsonpatch.Operation.Copy
  • Jsonpatch.Operation.Move
  • Jsonpatch.Operation.Remove
  • Jsonpatch.Operation.Replace
  • Jsonpatch.Operation.Test

Link to this section Summary

Functions

Executes the given patch to map/struct. Possible options are defined in Jsonpatch.

Link to this section Types

Link to this section Functions

Link to this function

apply_op(patch, target, opts \\ [])

View Source

Specs

apply_op(Jsonpatch.t(), list() | map() | Jsonpatch.error(), keyword()) ::
  map() | Jsonpatch.error()

Executes the given patch to map/struct. Possible options are defined in Jsonpatch.