Skip to content

Commit

Permalink
fix: allow non null value for the halfDay attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgebodega committed May 10, 2024
1 parent e4ba122 commit 4828717
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/infrastructure/factorial-client/schema/Leave.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { z } from "zod";
import { z } from 'zod';

export const Leave = z.object({
halfDay: z.null(),
halfDay: z.union([z.null(), z.string()]),
color: z.string(),
name: z.string(),
});
Expand Down

0 comments on commit 4828717

Please sign in to comment.