mirror of
https://github.com/json-c/json-c.git
synced 2026-11-07 06:00:16 +08:00
require string type for patch op/path/from fields
This commit is contained in:
1 parent
eed664e06a
commit
e248056aa1
3 files changed
+13
-3
No files matched your search
@@ -554,6 +554,12 @@
|
||||
"doc": {"foo": "bar"},
|
||||
"patch": [{"op": "move", "from": null, "path": "/foo"}],
|
||||
"error": "a null from field should fail rather than crash"
|
||||
},
|
||||
|
||||
{ "comment": "null path field must be rejected, not dereferenced",
|
||||
"doc": {"foo": "bar"},
|
||||
"patch": [{"op": "remove", "path": null}],
|
||||
"error": "a null path field should fail rather than crash"
|
||||
}
|
||||
|
||||
]
|
||||
Reference in new issue
Block a user