-
-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zod: preprocess enable except on response? #1601
Comments
I read this code and I was convinced preprocess is enabled on response only now. |
@melloware No. I want to use zod preprocess in request body. |
How about this one #1575 ??? |
@melloware Thanks. #1575 is almost same. I think the both issues mention that preprocess does not work except on response. // ...
override: {
zod: {
preprocess: {
response: { /**/ }, // work well
body: { /**/ }, // This does not work (mentioned by this issue)
query: { /**/ }, // This does not work (mentioned by #1575)
param: { /**/ }, // Maybe this does not work too
header: { /**/ }, // Maybe This does not work too
}, |
@mktktmr thanks for the clarification. Interested in investigating and providing a PR? If it works for Resposne then it should be easy to implement that code for the other sections? |
@melloware I see. I'll give it a try. |
Thanks developers for this awesome tool.
I have a question for zod preprocess.
Expectation
zod preprocess is enabled on body. (In my environment, preprocess is enabled on response only)
Version
My configuration
https://orval.dev/reference/configuration/output#preprocess
orval.config.js
The text was updated successfully, but these errors were encountered: