userver: userver/yaml_config/schema.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
schema.hpp File Reference

Detailed Description

JSON Schema-like type definition.

Definition in file schema.hpp.

Go to the source code of this file.

#include <memory>
#include <optional>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <variant>
#include <vector>
#include <userver/formats/parse/common_containers.hpp>
#include <userver/formats/yaml_fwd.hpp>
+ Include dependency graph for schema.hpp:
+ This graph shows which files directly or indirectly include this file:

Classes

class  yaml_config::SchemaPtr
 
struct  yaml_config::Schema
 JSON Schema-like type definition. More...
 

Namespaces

namespace  yaml_config
 Utilities to work with static YAML config.
 

Enumerations

enum class  FieldType {
  kBool ,
  kInteger ,
  kNumber ,
  kString ,
  kArray ,
  kObject
}
 

Functions

std::string yaml_config::ToString (FieldType type)
 
formats::yaml::Value yaml_config::Serialize (const SchemaPtr &schema, formats::serialize::To< formats::yaml::Value >)
 
Schema yaml_config::Parse (const formats::yaml::Value &schema, formats::parse::To< Schema >)
 
formats::yaml::Value yaml_config::Serialize (const Schema &schema, formats::serialize::To< formats::yaml::Value >)