From 3496c2154b711975bafccabcda9ec1da7d5ab764 Mon Sep 17 00:00:00 2001 From: Martin Hoyer Date: Fri, 16 Aug 2024 13:05:25 +0200 Subject: [PATCH] squash: Use Annotated Co-authored-by: Patrik Hagara --- src/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.py b/src/api.py index 038f20f..5b83a28 100644 --- a/src/api.py +++ b/src/api.py @@ -39,7 +39,7 @@ def find_test( plan_name: str = Query(None, alias="plan-name"), plan_ref: str = Query("default", alias="plan-ref"), plan_path: str = Query(None, alias="plan-path"), - out_format: str = Query("json", alias="format") + out_format: Annotated[Literal["html", "json"], Query(alias="format")] = "json", ): # Parameter validations if (test_url is None and test_name is not None) or (test_url is not None and test_name is None):