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

Link to this section Types

Link to this section Functions

Specs

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

Executes the given patch to map/struct.