numam-spdk/test/rpc_client
Jan Kryl 59339feac3 jsonrpc: tolerate null json value for parameters in json-rpc call
Rust lang has notion of empty value `()` which is translated to json null
value using serialization library like serde. Thus it means that jsonrpc
methods having no parameters translate to parameters with null value (as
opposed to a request without parameter member as it is done now in spdk).
This change handles null parameter gracefully instead of returning an
error - improving interoperability with such clients.

Signed-off-by: Jan Kryl <jan.kryl@mayadata.io>
Change-Id: I8c3cc5613582aebb10ac6eaee3ac4e6538aaa0b1
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/463171
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2019-07-26 19:30:57 +00:00
..
.gitignore jsonrpc-client: add new C client library 2018-10-11 20:07:44 +00:00
Makefile build: move app rules to spdk.app.mk 2018-12-12 22:35:21 +00:00
rpc_client_test.c jsonrpc: tolerate null json value for parameters in json-rpc call 2019-07-26 19:30:57 +00:00
rpc_client.sh test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00