fix: change username field in CanonicalUser to required for better data integrity

This commit is contained in:
Nathan Castaldi 2026-04-15 14:37:19 -04:00
parent db3b49624c
commit 88089d712c

View File

@ -39,7 +39,7 @@ class CanonicalUser(BaseModel):
# Identity
email: str = Field(description="Primary work email (normalized to lowercase)")
employee_id: Optional[str] = Field(default=None, description="Employee ID from HR system")
username: Optional[str] = Field(default=None, description="Login username (sAMAccountName/UPN)")
username: str = Field(description="Login username (sAMAccountName/UPN)")
# Profile
display_name: str = Field(description="Full display name")