forked from idubrov/json-patch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.yaml
More file actions
126 lines (126 loc) · 3.25 KB
/
errors.yaml
File metadata and controls
126 lines (126 loc) · 3.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
- doc: &1
first: "Hello"
second: "Bye"
third:
- "first"
- "second"
patch:
- op: add
path: "/first"
value: "Hello!!!"
- op: add
path: "/third/00"
value: "value"
error: "operation '/1' failed at path '/third/00': path is invalid"
- doc: *1
patch:
- op: add
path: "/third/01"
value: "value"
error: "operation '/0' failed at path '/third/01': path is invalid"
- doc: *1
patch:
- op: add
path: "/third/1~1"
value: "value"
error: "operation '/0' failed at path '/third/1~1': path is invalid"
- doc: *1
patch:
- op: add
path: "/third/1.0"
value: "value"
error: "operation '/0' failed at path '/third/1.0': path is invalid"
- doc: *1
patch:
- op: add
path: "/third/1e2"
value: "value"
error: "operation '/0' failed at path '/third/1e2': path is invalid"
- doc: *1
patch:
- op: add
path: "/third/+1"
value: "value"
error: "operation '/0' failed at path '/third/+1': path is invalid"
- doc: *1
patch:
- op: copy
from: "/third/1~1"
path: "/fourth"
error: 'operation ''/0'' failed at path ''/fourth'': "from" path is invalid'
- doc: *1
patch:
- op: move
from: "/third/1~1"
path: "/fourth"
error: 'operation ''/0'' failed at path ''/fourth'': "from" path is invalid'
- doc: *1
patch:
- op: move
from: "/third"
path: "/third/0"
error: "operation '/0' failed at path '/third/0': cannot move the value inside itself"
- doc: *1
patch:
- op: add
path: "/invalid/add/path"
value: true
error: "operation '/0' failed at path '/invalid/add/path': path is invalid"
- doc: *1
patch:
- op: remove
path: "/invalid/remove/path"
value: true
error: "operation '/0' failed at path '/invalid/remove/path': path is invalid"
- doc: *1
patch:
- op: replace
path: "/invalid/replace/path"
value: true
error: "operation '/0' failed at path '/invalid/replace/path': path is invalid"
- doc: *1
patch:
- op: test
path: "/invalid/test/path"
value: true
error: "operation '/0' failed at path '/invalid/test/path': path is invalid"
- doc: *1
patch:
- op: add
path: "first"
value: true
error: "json pointer failed to parse; does not start with a slash ('/') and is not empty"
- doc: *1
patch:
- op: replace
path: "first"
value: true
error: "json pointer failed to parse; does not start with a slash ('/') and is not empty"
- doc: *1
patch:
- op: remove
path: "first"
value: true
error: "json pointer failed to parse; does not start with a slash ('/') and is not empty"
- doc: *1
patch:
- op: add
path: "/first/add_to_primitive"
value: true
error: "operation '/0' failed at path '/first/add_to_primitive': path is invalid"
- doc: *1
patch:
- op: remove
path: "/remove_non_existent"
error: "operation '/0' failed at path '/remove_non_existent': path is invalid"
- doc: *1
patch:
- op: remove
path: "/first/remove_from_primitive"
error: "operation '/0' failed at path '/first/remove_from_primitive': path is invalid"
- doc: *1
patch:
- op: test
path: "/first"
value: "Other"
error: "operation '/0' failed at path '/first': value did not match"