userver: yaml_config::Schema Struct Reference
Loading...
Searching...
No Matches
yaml_config::Schema Struct Referencefinal

#include <userver/yaml_config/schema.hpp>

Detailed Description

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< SchemaPtritems
 
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
 

Member Data Documentation

◆ additional_properties

std::optional<std::variant<bool, SchemaPtr> > yaml_config::Schema::additional_properties

Definition at line 72 of file schema.hpp.

◆ default_description

std::optional<std::string> yaml_config::Schema::default_description

Definition at line 71 of file schema.hpp.

◆ description

std::string yaml_config::Schema::description

Definition at line 70 of file schema.hpp.

◆ enum_values

std::optional<std::unordered_set<std::string> > yaml_config::Schema::enum_values

Definition at line 75 of file schema.hpp.

◆ items

std::optional<SchemaPtr> yaml_config::Schema::items

Definition at line 74 of file schema.hpp.

◆ max_items

std::optional<std::size_t> yaml_config::Schema::max_items

Definition at line 79 of file schema.hpp.

◆ maximum

std::optional<double> yaml_config::Schema::maximum

Definition at line 77 of file schema.hpp.

◆ min_items

std::optional<std::size_t> yaml_config::Schema::min_items

Definition at line 78 of file schema.hpp.

◆ minimum

std::optional<double> yaml_config::Schema::minimum

Definition at line 76 of file schema.hpp.

◆ path

std::string yaml_config::Schema::path

Definition at line 67 of file schema.hpp.

◆ properties

std::optional<std::unordered_map<std::string, SchemaPtr> > yaml_config::Schema::properties

Definition at line 73 of file schema.hpp.

◆ type

FieldType yaml_config::Schema::type {}

Definition at line 69 of file schema.hpp.


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