Skip to content

Commit

Permalink
Add JsonPatchOperation as type alias for Operation
Browse files Browse the repository at this point in the history
xref: mattbaird#13 (comment)

Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Jan 8, 2019
1 parent 5af499c commit 34a7de0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jsonpatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (

var errBadJSONDoc = fmt.Errorf("invalid JSON Document")

type JsonPatchOperation = Operation

type Operation struct {
Operation string `json:"op"`
Path string `json:"path"`
Expand Down

0 comments on commit 34a7de0

Please sign in to comment.