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
Link to this section Types
Specs
t() :: term()
Link to this section Functions
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
.