A specialized NotSupported validator that forbids a field to be present when the value equals the given value.
More...
#include <Validators.hpp>
template<typename T>
class rpc::validation::NotSupported< T >
A specialized NotSupported validator that forbids a field to be present when the value equals the given value.
◆ NotSupported()
Constructs a new NotSupported validator.
- Parameters
-
val | The value to store and verify against |
◆ verify()
Verify whether the field is supported or not.
- Parameters
-
value | The JSON value representing the outer object |
key | The key used to retrieve the tested value from the outer object |
- Returns
RippledError::rpcNOT_SUPPORTED
if the value matched; otherwise no error is returned
The documentation for this class was generated from the following file: