summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2020-07-25 10:18:50 +0200
committerRafał Miłecki <rafal@milecki.pl>2020-08-05 08:22:57 +0200
commit9d663e76bd3ac91b18633eb8f4f0bfc6996c5875 (patch)
tree8bae552435ab7cafca1c0208d5ca3c5c77235e32 /main.c
parent77d345e52ea941d968d5ae5702dd2b69405097af (diff)
ubus: use BLOBMSG_TYPE_UNSPEC for "params" JSON attribute
According to the JSON-RPC 2.0 specification "params" value can be either an Array or Object. This change makes parse_json_rpc() accept both. Type validation should be handled by a function that actually reads "params" depending on expected format. This doesn't change existing behaviour but allows adding more methods (that expect Object) in the future. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'main.c')
0 files changed, 0 insertions, 0 deletions