Clio develop
The XRP Ledger API server.
|
Validates that the type of the value is one of the given types. More...
#include <Validators.hpp>
Public Member Functions | |
MaybeError | verify (boost::json::value const &value, std::string_view key) const |
Verify that the JSON value is (one) of specified type(s). | |
Validates that the type of the value is one of the given types.
|
inlinenodiscard |
Verify that the JSON value is (one) of specified type(s).
value | The JSON value representing the outer object |
key | The key used to retrieve the tested value from the outer object |
RippledError::rpcINVALID_PARAMS
if validation failed; otherwise no error is returned