Skip to content

Commit

Permalink
fix: type.null() issue with swagger in user invitation
Browse files Browse the repository at this point in the history
  • Loading branch information
hazemadelkhalel committed Aug 14, 2024
1 parent 024b28f commit b8f13a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/shared/src/lib/invitations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export const UserInvitation = Type.Object({
status: Type.Enum(InvitationStatus),
type: Type.Enum(InvitationType),
platformId: Type.String(),
platformRole: Type.Optional(Type.Union([Type.Enum(PlatformRole), Type.Null()])),
platformRole: Nullable(Type.Enum(PlatformRole)),
projectId: Nullable(Type.String()),
projectRole: Type.Optional(Type.Union([Type.Enum(ProjectMemberRole), Type.Null()])),
projectRole: Nullable(Type.Enum(ProjectMemberRole)),
})

export type UserInvitation = Static<typeof UserInvitation>
Expand Down

0 comments on commit b8f13a3

Please sign in to comment.