Skip to content

Commit e39dbb6

Browse files
committed
added max char validation
1 parent 437aedf commit e39dbb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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).optional(),
23+
name: zod.string({invalid_type_error: 'Value must be a string'}).min(1).max(50).optional(),
2424

2525
compliance_topics: zod
2626
.array(

packages/app/src/cli/models/extensions/specifications/app_config_webhook_subscription.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const SingleWebhookSubscriptionSchema = zod.object({
2929
include_fields: zod.array(zod.string({invalid_type_error: 'Value must be a string'})).optional(),
3030
filter: zod.string({invalid_type_error: 'Value must be a string'}).optional(),
3131
payload_query: zod.string({invalid_type_error: 'Value must be a string'}).trim().min(1).optional(),
32-
name: zod.string({invalid_type_error: 'Value must be a string'}).min(1).optional(),
32+
name: zod.string({invalid_type_error: 'Value must be a string'}).min(1).max(50).optional(),
3333
})
3434

3535
/* this transforms webhooks remotely to be accepted by the TOML

0 commit comments

Comments
 (0)