Validate that value is equal or greater than the specified min.
More...
#include <Validators.hpp>
|
| Min (Type min) |
| Construct the validator storing min value.
|
|
MaybeError | verify (boost::json::value const &value, std::string_view key) const |
| Verify that the JSON value is not smaller than min.
|
|
template<typename
Type>
class rpc::validation::Min< Type >
Validate that value is equal or greater than the specified min.
◆ Min()
Construct the validator storing min value.
- Parameters
-
◆ verify()
Verify that the JSON value is not smaller than min.
- Parameters
-
value | The JSON value representing the outer object |
key | The key used to retrieve the tested value from the outer object |
- Returns
RippledError::rpcINVALID_PARAMS
if validation failed; otherwise no error is returned
The documentation for this class was generated from the following file: