Skip to content

Commit

Permalink
update api typings
Browse files Browse the repository at this point in the history
  • Loading branch information
devksingh4 committed Jul 14, 2024
1 parent 337cb47 commit 8fb5f81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/util/structs.py
Original file line number Diff line number Diff line change
@@ -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):
Expand All @@ -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]
Expand Down

0 comments on commit 8fb5f81

Please sign in to comment.