Open RaphaelRobidas opened 1 year ago
Looks like the "Usage:" section of the docstring determines whether "is_required" will be true. But the argument also needs to be in the "Options:" section to be detected and emitted into docs/api.json.
jsonrpc_account_send
and jsonrpc_wallet_send
don't have "--amount" and "--addresses" in the "Options:" section.
Certain required arguments are not specified in the current SDK API documentation. For example,
wallet_send
andaccount_send
do not display anamount
field, although it would be required. There are many other cases where some arguments could be missing, although I couldn't tell precisely all the cases. This appears to stem from a bug inscripts/generate_json_api.py
.