From f3a8e305482b30d06249a66d7925a586abdf766c Mon Sep 17 00:00:00 2001 From: Scott Wilson Date: Fri, 18 Jul 2025 13:40:42 -0700 Subject: [PATCH] improvement: allow null for non-supported gatewayId --- backend/src/services/app-connection/app-connection-schemas.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/services/app-connection/app-connection-schemas.ts b/backend/src/services/app-connection/app-connection-schemas.ts index 92fc83123..d0dcb1a54 100644 --- a/backend/src/services/app-connection/app-connection-schemas.ts +++ b/backend/src/services/app-connection/app-connection-schemas.ts @@ -40,6 +40,7 @@ export const GenericCreateAppConnectionFieldsSchema = ( ? z.string().uuid().nullish().describe("The Gateway ID to use for this connection.") : z .undefined({ message: `Not supported for ${APP_CONNECTION_NAME_MAP[app]} Connections` }) + .or(z.null({ message: `Not supported for ${APP_CONNECTION_NAME_MAP[app]} Connections` })) .describe(`Not supported for ${APP_CONNECTION_NAME_MAP[app]} Connections.`) }); @@ -67,5 +68,6 @@ export const GenericUpdateAppConnectionFieldsSchema = ( ? z.string().uuid().nullish().describe("The Gateway ID to use for this connection.") : z .undefined({ message: `Not supported for ${APP_CONNECTION_NAME_MAP[app]} Connections` }) + .or(z.null({ message: `Not supported for ${APP_CONNECTION_NAME_MAP[app]} Connections` })) .describe(`Not supported for ${APP_CONNECTION_NAME_MAP[app]} Connections.`) });