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.`) });