Jsonpatch v0.7.0 Jsonpatch.Operation protocol 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.

Link to this section Types

Link to this section Functions

Specs

apply_op(Jsonpatch.t(), map()) :: map() | :ok | :error

Executes the given patch to map/struct.