A trailing comma was left in the last item of the `result.problems` array in the JSON-RPC example response of noripple_check.
I'm actually creating json files with the examples to mock responses in unit tests for the library I'm writing, so my tests found it. I wouldn't have noticed otherwise. I'm grateful we have example responses to review and copy!
Sorry for all the PRs, I'm editing directly in github's UI. I checked ahead and this is the last one of this type in the Account API section. I'm writing a wrapper for the API so the changes are trickling in as I get through each method document.
This PR includes the same changes reported in #410, except for account_offers this time.
- Removed deprecated `ledger` parameter is used in the websocket request
- Removed `ledger_index` parameter from the json request since it includes the default value (for consistency)
- Removed the word `Optional` from the Type column since the convention seems to be to indicate that in the Description area.
Similar to PR #409 except the deprecated `ledger` param was used in the websocket request example, while `ledger_index` was used in the JSON example.
This PR removes those parameters on both examples. I also removed the word `Optional` from the `Type` column since the convention seems to be to indicate that in the description field.
Note: The Commandline request example has `[ledger_index]`, however the syntax suggests it's an optional argument and not an flagged option (i.e. `--ledger_index=current`), so it seems proper to leave that as is.
The `ledger` parameter is now `ledger_index`, which is optional and defaults to current. This PR removes the `ledger` param from the example requests.
I had opened a PR to simply change `ledger` to `ledger_index`, however the conventions of the API docs seem to only use required parameters, so I closed that PR and created this one instead.
- End description cells with a period
- Use 'The default is' instead of 'Defaults to'
- Auto table column widths
- Put 'rippled' in code font
- Put 'true' and 'false' in code font
- Remove colons from URL templates per RFC6570
- Fix missing column in fee method description
The `hotwallet` parameter of `gateway-balances()` didn't seem like the type of parameter that needs to be required. I tested the API w/o it and it returned successfully.