Skip to content

Commit

Permalink
change topics zod to optional
Browse files Browse the repository at this point in the history
  • Loading branch information
gracejychang committed Mar 20, 2024
1 parent d1ea26b commit adc38c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const WebhookSubscriptionSchema = zod.object({
.array(zod.string({invalid_type_error: 'Values within array must be a string'}), {
invalid_type_error: 'Value must be string[]',
})
.nonempty({message: "Value can't be empty"}),
.optional(),
uri: zod.preprocess(removeTrailingSlash, UriValidation, {required_error: 'Missing value at'}),
sub_topic: zod.string({invalid_type_error: 'Value must be a string'}).optional(),
include_fields: zod.array(zod.string({invalid_type_error: 'Value must be a string'})).optional(),
Expand Down

0 comments on commit adc38c2

Please sign in to comment.