Skip to content

Commit 4bfeba3

Browse files
Merge pull request #6727 from Shopify/trim-webhook-name-field
added trim to the name field
2 parents 88c22cc + cc5a06f commit 4bfeba3

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_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).max(50).optional(),
32+
name: zod.string({invalid_type_error: 'Value must be a string'}).trim().min(1).max(50).optional(),
3333
})
3434

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

0 commit comments

Comments
 (0)