From 32fa66df0dbf9d9bef730530d05e07d8fc56cd71 Mon Sep 17 00:00:00 2001 From: Danny Rorabaugh Date: Thu, 24 Aug 2023 16:32:19 -0400 Subject: [PATCH] In api.py, remove default argument from Path() --- lib/langfontfinder/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/langfontfinder/api.py b/lib/langfontfinder/api.py index 68538f9..e9fbb31 100755 --- a/lib/langfontfinder/api.py +++ b/lib/langfontfinder/api.py @@ -30,7 +30,7 @@ @lffapp.get("/lang/{ltag}", summary="lang/{ltag}", name="lang") -async def lang(response: Response, ltag: str = Path("", description="Language tag")): +async def lang(response: Response, ltag: str = Path(description="Language tag")): """ Given a language tag, returns font location information as json object. """ res = ruleset.get(ltag) if res is None: @@ -38,7 +38,7 @@ async def lang(response: Response, ltag: str = Path("", description="Language ta return res @lffapp.get("/family/{familyid}", summary="family/{familyid}", name="family") -async def family(response:Response, familyid: str = Path("", description="Font family id")): +async def family(response:Response, familyid: str = Path(description="Font family id")): """ Given a familyid returns the font family json object. """ res = ruleset.getfamily(familyid) if res is None: