Skip to content

Commit c23c2d1

Browse files
fix: allow false for custom field 'fieldRequired' by using z.boolean() (#25322)
* fix: allow false for custom field 'fieldRequired' by using z.boolean() * updated to z.boolean().optional() --------- Co-authored-by: Pallav <[email protected]>
1 parent 65893ae commit c23c2d1

File tree

1 file changed

+1
-1
lines changed
  • apps/api/v2/src/ee/event-types/event-types_2024_06_14/transformers/internal-to-api

1 file changed

+1
-1
lines changed

apps/api/v2/src/ee/event-types/event-types_2024_06_14/transformers/internal-to-api/booking-fields.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ const CustomFieldsSchema = z.object({
318318
id: z.literal("user"),
319319
type: z.literal("user"),
320320
label: z.literal("User"),
321-
fieldRequired: z.literal(true),
321+
fieldRequired: z.boolean().optional(),
322322
})
323323
),
324324
editable: z.enum(["user", "user-readonly"]),

0 commit comments

Comments
 (0)