def validate_recipe_file()

in src/hyperpod_cli/validators/job_validator.py [0:0]


def validate_recipe_file(recipe: str):
    full_recipe_path = os.path.join(RECIPES_DIR, f"{recipe}.yaml")
    
    if os.path.exists(full_recipe_path) and os.path.isfile(full_recipe_path):
        logger.info(f"Recipe file found: {full_recipe_path}")
        return True
    
    logger.error(f"Recipe file '{recipe}.yaml' not found in {RECIPES_DIR}")
    return False