We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f211a02 commit 8a9b81cCopy full SHA for 8a9b81c
1 file changed
libs/sdk/src/core/schema.ts
@@ -163,10 +163,8 @@ const upstreamSchema = (extend?: ZodRawShape) =>
163
verify: z.boolean().optional(),
164
})
165
.refine(
166
- (data) =>
167
- (data.client_cert && data.client_key && !data.client_cert_id) ||
168
- (data.client_cert_id && !data.client_cert && !data.client_key),
169
- 'The client_cert and client_key certificate pair or client_cert_id SSL reference ID must be set',
+ (data) => data.client_cert || data.client_key,
+ 'Please replace `client_cert` and `client_key` with SSL resources and `client_cert_id`.',
170
)
171
.optional(),
172
keepalive_pool: z
0 commit comments