From cc5a06fd69b1ba79875dd71d912a95222dbaa399 Mon Sep 17 00:00:00 2001 From: George Li Date: Mon, 15 Dec 2025 16:06:54 -0500 Subject: [PATCH] added trim to the name field --- .../specifications/app_config_webhook_subscription.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app/src/cli/models/extensions/specifications/app_config_webhook_subscription.ts b/packages/app/src/cli/models/extensions/specifications/app_config_webhook_subscription.ts index c1cffad42b7..762c33eea86 100644 --- a/packages/app/src/cli/models/extensions/specifications/app_config_webhook_subscription.ts +++ b/packages/app/src/cli/models/extensions/specifications/app_config_webhook_subscription.ts @@ -29,7 +29,7 @@ export const SingleWebhookSubscriptionSchema = zod.object({ include_fields: zod.array(zod.string({invalid_type_error: 'Value must be a string'})).optional(), filter: zod.string({invalid_type_error: 'Value must be a string'}).optional(), payload_query: zod.string({invalid_type_error: 'Value must be a string'}).trim().min(1).optional(), - name: zod.string({invalid_type_error: 'Value must be a string'}).min(1).max(50).optional(), + name: zod.string({invalid_type_error: 'Value must be a string'}).trim().min(1).max(50).optional(), }) /* this transforms webhooks remotely to be accepted by the TOML