configconfig.validator
Validate values obtained from the YAML
file and coerce into the appropriate return types.
Classes:
|
Methods are named |
Functions:
|
Validate the given datafiles against the given schema. |
-
class
Validator
(config_var)[source] Bases:
object
Methods are named
visit_<type>
.Methods:
Called when the desired type has no visitor.
validate
([raw_config_vars])Validate the configuration value.
visit_bool
(raw_config_vars)Used to validate and convert
bool
values.visit_dict
(raw_config_vars)Used to validate and convert
dict
values.visit_float
(raw_config_vars)Used to validate and convert
float
values.visit_int
(raw_config_vars)Used to validate and convert
int
values.visit_list
(raw_config_vars)Used to validate and convert
list
values.visit_literal
(raw_config_vars)Used to validate and convert
typing.Literal
values.visit_str
(raw_config_vars)Used to validate and convert
str
values.visit_union
(raw_config_vars)Used to validate and convert
typing.Union
values.