Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/contracts/tenant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,20 +110,20 @@ export const TenantListItemSchema: TObject<{
export type TenantListItem = Static<typeof TenantListItemSchema>

/**
* The schema for a tenant user
* The schema for a tenant user.
*/
export const TenantUserSchema: TObject<{
id: TString
username: TString
email: TString
firstName: TString
lastName: TString
firstName: TUnion<[TString, TNull]>
lastName: TUnion<[TString, TNull]>
}> = Type.Object({
id: Type.String(),
username: Type.String(),
email: Type.String(),
firstName: Type.String(),
lastName: Type.String(),
firstName: Type.Union([Type.String(), Type.Null()]),
lastName: Type.Union([Type.String(), Type.Null()]),
})

/**
Expand Down
Loading