Skip to content

Commit

Permalink
squash: Use Annotated
Browse files Browse the repository at this point in the history
Co-authored-by: Patrik Hagara <[email protected]>
  • Loading branch information
martinhoyer and phagara authored Aug 16, 2024
1 parent 6ec4f94 commit 3496c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 3496c21

Please sign in to comment.