Skip to content

Commit 833d751

Browse files
committed
added trim() to name field
1 parent e39dbb6 commit 833d751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/src/cli/models/extensions/specifications/app_config_webhook_schemas/webhook_subscription_schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const WebhookSubscriptionSchema = zod.object({
2020
include_fields: zod.array(zod.string({invalid_type_error: 'Value must be a string'})).optional(),
2121
filter: zod.string({invalid_type_error: 'Value must be a string'}).optional(),
2222
payload_query: zod.string({invalid_type_error: 'Value must be a string'}).trim().min(1).optional(),
23-
name: zod.string({invalid_type_error: 'Value must be a string'}).min(1).max(50).optional(),
23+
name: zod.string({invalid_type_error: 'Value must be a string'}).trim().min(1).max(50).optional(),
2424

2525
compliance_topics: zod
2626
.array(

0 commit comments

Comments
 (0)