From 8fb5f8196d142d8eb429abcb42e7aa7ea608bcaf Mon Sep 17 00:00:00 2001 From: Dev Singh Date: Sun, 14 Jul 2024 12:17:41 -0400 Subject: [PATCH] update api typings --- code/util/structs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/util/structs.py b/code/util/structs.py index d0de70d..7cc2542 100644 --- a/code/util/structs.py +++ b/code/util/structs.py @@ -1,4 +1,4 @@ -from typing import List, Optional +from typing import List, Literal, Optional from pydantic import BaseModel, ConfigDict, EmailStr, AnyUrl, HttpUrl class DegreeListing(BaseModel): @@ -16,9 +16,9 @@ class StudentProfileDetails(BaseModel): username: str name: str email: EmailStr - linkedin: Optional[HttpUrl] = None - github: Optional[HttpUrl] = None - website: Optional[HttpUrl] = None + linkedin: Optional[HttpUrl | Literal[""]] = None + github: Optional[HttpUrl | Literal[""]] = None + website: Optional[HttpUrl | Literal[""]] = None degrees: List[DegreeListing] bio: str skills: List[str]