Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
rpc::validation::Required Struct Referencefinal

A validator that simply requires a field to be present. More...

#include <Validators.hpp>

Static Public Member Functions

static MaybeError verify (boost::json::value const &value, std::string_view key)
 Verify that the JSON value is present and not null.
 

Detailed Description

A validator that simply requires a field to be present.

Member Function Documentation

◆ verify()

MaybeError rpc::validation::Required::verify ( boost::json::value const & value,
std::string_view key )
staticnodiscard

Verify that the JSON value is present and not null.

Parameters
valueThe JSON value representing the outer object
keyThe key used to retrieve the tested value from the outer object
Returns
An error if validation failed; otherwise no error is returned

The documentation for this struct was generated from the following files: