When API endpoint has all optional paramaters, deserialization shouldn't fail when request body is empty.
Not reproducible on testnet
[x] This issue is only present on Devnet and cannot be reproduced on the alpha-sepolia testnet (check the box if true).
To Reproduce
Steps to reproduce the behavior:
This fails:
curl -X POST http://127.0.0.1:5050/dump
It shouldn't fail, and it should behave identicaly as:
curl -X POST http://127.0.0.1:5050/dump -d '{}'
Describe the bug (observed vs expected behavior)
When API endpoint has all optional paramaters, deserialization shouldn't fail when request body is empty.
Not reproducible on testnet
To Reproduce Steps to reproduce the behavior:
This fails:
curl -X POST http://127.0.0.1:5050/dump
It shouldn't fail, and it should behave identicaly as:curl -X POST http://127.0.0.1:5050/dump -d '{}'
In JSON-RPC case, this fails:
And this doesn't:
As before, both cases should behave identically. Devnet version