_sanitize_yaml_file
- _sanitize_yaml_file(input_file: str, output_file: str) None[source]
Sanitize an input YAML file and produce a new sanitized YAML file.
Sanitize by removing keys with values that are None, empty lists, or empty dictionaries, and save the sanitized content to a new file.
- Parameters:
input_file (str) – The path to the input YAML file.
output_file (str) – The path to the output sanitized YAML file.