File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
cluster/pulumi/common-validator/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,16 @@ import { z } from 'zod';
1111
1212export 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 ;
You can’t perform that action at this time.
0 commit comments