A meta-processor that acts as a spec for a sub-object/section.
More...
#include <MetaProcessors.hpp>
|
| Section (std::initializer_list< FieldSpec > specs) |
| Construct new section validator from a list of specs.
|
|
MaybeError | verify (boost::json::value &value, std::string_view key) const |
| Verify that the JSON value representing the section is valid according to the given specs.
|
|
A meta-processor that acts as a spec for a sub-object/section.
◆ Section()
rpc::meta::Section::Section |
( |
std::initializer_list< FieldSpec > | specs | ) |
|
|
inlineexplicit |
Construct new section validator from a list of specs.
- Parameters
-
◆ verify()
MaybeError rpc::meta::Section::verify |
( |
boost::json::value & | value, |
|
|
std::string_view | key ) const |
|
nodiscard |
Verify that the JSON value representing the section is valid according to the given specs.
- Parameters
-
value | The JSON value representing the outer object |
key | The key used to retrieve the section from the outer object |
- Returns
- Possibly an error
The documentation for this class was generated from the following files:
- /__w/clio/clio/src/rpc/common/MetaProcessors.hpp
- /__w/clio/clio/src/rpc/common/MetaProcessors.cpp