Skip to content

Commit

Permalink
Fix schema
Browse files Browse the repository at this point in the history
  • Loading branch information
mjac0bs committed Sep 27, 2023
1 parent bb385ad commit 3a896c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/validation/src/loadbalancers.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const UpdateCertificateSchema = object({
certificate: string(),
key: string().when(['type', 'certificate'], {
is: (type: string, certificate: string) =>
type === 'downstream' && certificate === '',
type === 'downstream' && certificate,
then: string().required('Private Key is required'),
}),
label: string(),
Expand Down

0 comments on commit 3a896c4

Please sign in to comment.