mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 08:27:36 +00:00
improvement: allow null for non-supported gatewayId
This commit is contained in:
@@ -40,6 +40,7 @@ export const GenericCreateAppConnectionFieldsSchema = (
|
|||||||
? z.string().uuid().nullish().describe("The Gateway ID to use for this connection.")
|
? z.string().uuid().nullish().describe("The Gateway ID to use for this connection.")
|
||||||
: z
|
: z
|
||||||
.undefined({ message: `Not supported for ${APP_CONNECTION_NAME_MAP[app]} Connections` })
|
.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.`)
|
.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.string().uuid().nullish().describe("The Gateway ID to use for this connection.")
|
||||||
: z
|
: z
|
||||||
.undefined({ message: `Not supported for ${APP_CONNECTION_NAME_MAP[app]} Connections` })
|
.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.`)
|
.describe(`Not supported for ${APP_CONNECTION_NAME_MAP[app]} Connections.`)
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user