Skip to content

Commit e5c24e1

Browse files
minor fixes
[ci] Signed-off-by: Pasindu Tennage <[email protected]>
1 parent 0690d3a commit e5c24e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cluster/pulumi/common-validator/src/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ import { z } from 'zod';
1111

1212
export const SynchronizerConfigSchema = z
1313
.object({
14-
type: z.enum(['from-scan', 'trusted-url', 'trusted-svs']).default('from-scan'),
14+
synchronizerType: z.enum(['from-scan', 'trusted-url', 'trusted-svs']).default('from-scan'),
1515
sequencerNames: z.array(z.string()).optional(),
1616
url: z.string().optional(),
1717
})
1818
.refine(
1919
data => {
20-
if (data.type === 'trusted-url') {
20+
if (data.synchronizerType === 'trusted-url') {
2121
return !!data.url && (!data.sequencerNames || data.sequencerNames.length === 0);
2222
}
23-
if (data.type === 'trusted-svs') {
23+
if (data.synchronizerType === 'trusted-svs') {
2424
return !!(data.sequencerNames && data.sequencerNames.length > 0) && !data.url;
2525
}
2626
return true;

0 commit comments

Comments
 (0)