59339feac3
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> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
rpc_client_test.c | ||
rpc_client.sh |