@@ -53,6 +53,7 @@ const defaultJSONSchemaOptions = {
5353 // Handle z.stringbool() - it's a pipe from string->transform->boolean
5454 // Colin Hacks explained: stringbool is just string -> transform -> boolean
5555 // When io:'input', we see the string schema; when io:'output', we see boolean
56+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5657 const pipeDef = def as typeof def & { in : any ; out : any } ;
5758 const inSchema = pipeDef . in ;
5859 const outSchema = pipeDef . out ;
@@ -75,6 +76,7 @@ const defaultJSONSchemaOptions = {
7576 break ;
7677 } else if ( currentDef . type === 'pipe' ) {
7778 // Continue traversing the pipe
79+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
7880 const nestedPipeDef = currentDef as typeof currentDef & { out : any } ;
7981 currentSchema = nestedPipeDef . out ;
8082 } else {
@@ -119,13 +121,15 @@ const defaultJSONSchemaOptions = {
119121 ctx . jsonSchema . type = 'array' ;
120122 ctx . jsonSchema . uniqueItems = true ;
121123 // Convert the default value from Set to Array
122- ctx . jsonSchema . default = Array . from ( def . defaultValue ) ;
124+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
125+ ctx . jsonSchema . default = Array . from ( def . defaultValue as any ) ;
123126 } else if ( innerDef . type === 'map' && def . defaultValue instanceof Map ) {
124127 // Set the proper schema type for maps
125128 ctx . jsonSchema . type = 'array' ;
126129 ctx . jsonSchema . format = 'map' ;
127130 // Convert the default value from Map to Array of tuples
128- ctx . jsonSchema . default = Array . from ( def . defaultValue ) ;
131+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
132+ ctx . jsonSchema . default = Array . from ( def . defaultValue as any ) ;
129133 }
130134 }
131135 }
0 commit comments