You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating Zod validation schemas from OpenAPI specifications that use prefixItems to define tuple structures (common when working with Python APIs that use Tuple types), Orval generates invalid TypeScript with syntax errors including:
Duplicate zodzod namespace references
Incorrectly placed commas and syntax in tuple definitions
Malformed Zod validation code that fails to compile
import*aszodfrom'zod';// This is the problematic generated code with errorsexportconstgetTupleTestResponse=zod.object({"nodes": zod.array(zod.tuple([zod.string(),.uuid(),zodzod.object({"id": zod.string().uuid(),"name": zod.string(),"status": zod.enum(['RUNNING','COMPLETED','FAILED'])})]))});
The text was updated successfully, but these errors were encountered:
When generating Zod validation schemas from OpenAPI specifications that use prefixItems to define tuple structures (common when working with Python APIs that use Tuple types), Orval generates invalid TypeScript with syntax errors including:
The text was updated successfully, but these errors were encountered: