-
-
Notifications
You must be signed in to change notification settings - Fork 495
Open
Labels
Description
I've observed that when using the Zod generator with an OpenAPI specification that utilises the $ref keyword to link between component schemas (e.g., a User schema referencing an Address schema under #/components/schemas), Orval recursively resolves these references.
The final Zod response schema for an operation (e.g., getUserByIdResponse) is generated as a single, large Zod object that contains the entire, inline definition of every referenced component schema, rather than simply referencing their names.
This generates massive files that are difficult to work with, especially in complex specs.