Validate
ValidationError
validate_and_transform_in_place(config, validation, replace_none=True)
Validates the config against the snk config. Will convert values to the correct type if possible.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config |
dict
|
The config to validate. |
required |
validation |
dict
|
The validation dict. |
required |
replace_none |
bool
|
If True, replace 'None' with None. |
True
|
Source code in src/snk_cli/validate.py
validate_config(config, snk_config_path)
Validates the config against the snk config. Will convert values to the correct type if possible.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config |
dict
|
The config to validate. |
required |
snk_config_path |
Path
|
The path to the snk config. |
required |