From 23fd4c6e6a0c13552ed61a51980fce39b309245d Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Mon, 7 Jul 2025 15:48:36 +0200 Subject: [PATCH] openapi: error on missing api function docstring --- pkgs/clan-cli/openapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/clan-cli/openapi.py b/pkgs/clan-cli/openapi.py index af70d47cd..bd6c280de 100644 --- a/pkgs/clan-cli/openapi.py +++ b/pkgs/clan-cli/openapi.py @@ -150,7 +150,7 @@ def main() -> None: errors.extend(check_res) if not func_schema.get("description"): - warnings.append( + errors.append( f"{func_name} doesn't have a description. Python docstring is required for an API function." )