3#include <userver/components/component_config.hpp>
4#include <userver/components/impl/component_base.hpp>
5#include <userver/yaml_config/impl/validate_static_config.hpp>
6#include <userver/yaml_config/schema.hpp>
12enum class ValidationMode {
18 formats::
parse::
To<ValidationMode>);
21template <
typename Component>
22void TryValidateStaticConfig(
const components::ComponentConfig& static_config,
23 ValidationMode validation_condition) {
25 validation_condition == ValidationMode::kAll) {
26 yaml_config::Schema schema = Component::GetStaticConfigSchema();
32template <
typename Component>
35 return Component::GetStaticConfigSchema();