Skip to content

Feature Request: Disable output validation for better performance #602

@valerii15298

Description

@valerii15298

Currently I did not find a way to disable output validation when using zod schema(or any other schema) for output. Output schema is needed for OpenAPI. But for very large responses validating output(I tested with zod) takes significant slowdown. Zod also deeply clones data when performs parsing.

Would be nice to have a flag to disable output validation for better performance when having large responses.
And by having this option would be also discouraging to use zod .transoform or .owerwrite utilities.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions