#include <userver/yaml_config/schema.hpp>
JSON Schema-like type definition.
Definition at line 60 of file schema.hpp.
Public Member Functions | |
void | UpdateDescription (std::string new_description) |
bool | operator== (const Schema &) const |
Static Public Member Functions | |
static Schema | EmptyObject () |
Public Attributes | |
std::string | path |
FieldType | type {} |
std::string | description |
std::optional< std::string > | default_description |
std::optional< std::variant< bool, SchemaPtr > > | additional_properties |
std::optional< std::unordered_map< std::string, SchemaPtr > > | properties |
std::optional< SchemaPtr > | items |
std::optional< std::unordered_set< std::string > > | enum_values |
std::optional< double > | minimum |
std::optional< double > | maximum |
std::optional< std::size_t > | min_items |
std::optional< std::size_t > | max_items |
std::optional<std::variant<bool, SchemaPtr> > yaml_config::Schema::additional_properties |
Definition at line 72 of file schema.hpp.
std::optional<std::string> yaml_config::Schema::default_description |
Definition at line 71 of file schema.hpp.
std::string yaml_config::Schema::description |
Definition at line 70 of file schema.hpp.
std::optional<std::unordered_set<std::string> > yaml_config::Schema::enum_values |
Definition at line 75 of file schema.hpp.
std::optional<SchemaPtr> yaml_config::Schema::items |
Definition at line 74 of file schema.hpp.
std::optional<std::size_t> yaml_config::Schema::max_items |
Definition at line 79 of file schema.hpp.
std::optional<double> yaml_config::Schema::maximum |
Definition at line 77 of file schema.hpp.
std::optional<std::size_t> yaml_config::Schema::min_items |
Definition at line 78 of file schema.hpp.
std::optional<double> yaml_config::Schema::minimum |
Definition at line 76 of file schema.hpp.
std::string yaml_config::Schema::path |
Definition at line 67 of file schema.hpp.
std::optional<std::unordered_map<std::string, SchemaPtr> > yaml_config::Schema::properties |
Definition at line 73 of file schema.hpp.
FieldType yaml_config::Schema::type {} |
Definition at line 69 of file schema.hpp.