Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
rpc::validation::NotSupported<> Class Referencefinal

A specialized NotSupported validator that forbids 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 whether the field is supported or not.
 

Detailed Description

A specialized NotSupported validator that forbids a field to be present.

Member Function Documentation

◆ verify()

static MaybeError rpc::validation::NotSupported<>::verify ( boost::json::value const & value,
std::string_view key )
inlinestaticnodiscard

Verify whether the field is supported or not.

Parameters
valueThe JSON value representing the outer object
keyThe key used to retrieve the tested value from the outer object
Returns
RippledError::rpcNOT_SUPPORTED if the field is found; otherwise no error is returned

The documentation for this class was generated from the following file: