@@ -43,17 +43,17 @@ testSchemaConverter([
4343 {
4444 name : 'tuple([z.enum(["a", "b"])])' ,
4545 schema : z . tuple ( [ z . enum ( [ 'a' , 'b' ] ) ] ) ,
46- input : [ true , { type : 'array' , prefixItems : [ { enum : [ 'a' , 'b' ] } ] } ] ,
46+ input : [ true , { type : 'array' , prefixItems : [ { type : 'string' , enum : [ 'a' , 'b' ] } ] } ] ,
4747 } ,
4848 {
4949 name : 'tuple([z.enum(["a", "b"])], z.string())' ,
5050 schema : z . tuple ( [ z . enum ( [ 'a' , 'b' ] ) ] , z . string ( ) ) ,
51- input : [ true , { type : 'array' , prefixItems : [ { enum : [ 'a' , 'b' ] } ] , items : { type : 'string' } } ] ,
51+ input : [ true , { type : 'array' , prefixItems : [ { type : 'string' , enum : [ 'a' , 'b' ] } ] , items : { type : 'string' } } ] ,
5252 } ,
5353 {
5454 name : 'zm.tuple([zm.enum(["a", "b"])], zm.string()).check(zm.minLength(4), zm.maxLength(10))' ,
5555 schema : zm . tuple ( [ zm . enum ( [ 'a' , 'b' ] ) ] , zm . string ( ) ) . check ( zm . minLength ( 4 ) , zm . maxLength ( 10 ) ) ,
56- input : [ true , { type : 'array' , prefixItems : [ { enum : [ 'a' , 'b' ] } ] , items : { type : 'string' } , minItems : 4 , maxItems : 10 } ] ,
56+ input : [ true , { type : 'array' , prefixItems : [ { type : 'string' , enum : [ 'a' , 'b' ] } ] , items : { type : 'string' } , minItems : 4 , maxItems : 10 } ] ,
5757 } ,
5858 {
5959 name : 'set(z.string())' ,
0 commit comments