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:
objectMethods 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
boolvalues.visit_dict(raw_config_vars)Used to validate and convert
dictvalues.visit_float(raw_config_vars)Used to validate and convert
floatvalues.visit_int(raw_config_vars)Used to validate and convert
intvalues.visit_list(raw_config_vars)Used to validate and convert
listvalues.visit_literal(raw_config_vars)Used to validate and convert
typing.Literalvalues.visit_str(raw_config_vars)Used to validate and convert
strvalues.visit_union(raw_config_vars)Used to validate and convert
typing.Unionvalues.