Automate docs for values.yaml via pre-commit config and break them into logical groups like https://github.com/bitnami/charts/tree/master/bitnami/airflow
scripts/ci/pre_commit/pre_commit_json_schema.py
pass
def load_file(file_path: str):
    """Loads a file using a serializer which guesses based on the file extension"""
    if file_path.lower().endswith('.json'):
        with open(file_path) as input_file:
            return json.load(input_file)
    elif file_path.lower().endswith('.yaml') or file_path.lower().endswith('.yml'):
        with open(file_path) as input_file:
            return yaml.safe_load(input_file)
    raise _ValidatorError("Unknown file format. Supported extension: '.yaml', '.json'")
def _get_parser() -> argparse.ArgumentParser:
    parser = argparse.ArgumentParser(description='Validates the file using JSON Schema specifications')
    group = parser.add_mutually_exclusive_group(required=True)
    group.add_argument('--spec-file', help="The path to specification")
    group.add_argument('--spec-url', help="The URL to specification")
    parser.add_argument('file', nargs='+')
    return parser
def _process_files(validator, file_paths: List[str]):
    exit_code = 0
    for input_path in file_paths:
        print("Processing file: ", input_path)
        instance = load_file(input_path)
        for error in validator.iter_errors(instance):
            print(error)
            exit_code = 1
    return exit_code
def _create_validator(schema):