Comments (7)
How about this one #1575 ???
from orval.
I read this code and I was convinced preprocess is enabled on response only now.
Do you have a plan to be enable preprocess except on response?
In addition, do you have method to enable preprocess except on response without orval.config.js
at the moment?
from orval.
@mktktmr is this your issue: #1586 ???
from orval.
@melloware No. I want to use zod preprocess in request body.
So, I think #1586 is different to this issue.
from orval.
@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
},
from orval.
@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?
from orval.
@melloware I see. I'll give it a try.
from orval.
Related Issues (20)
- [Regression in 7.0.1] Generated MSW mock handlers have type check error HOT 3
- react-query: check for NULL skipped inside "anyOf" list of types
- Schema allOf generation does not follow Swagger spec HOT 4
- Hono: incorrect handler relative paths when using tag mode
- Allow using zod's preprocess on query
- Next.js 14 / swr client with fetch httpClient: 'client-only' cannot be imported from a Server Component module HOT 4
- Unable to Configure placeholderData Option for React Query in Orval Config HOT 1
- ReactQuery: Typecheck fails on the generated code HOT 1
- MSW: Callback function does not have async
- Zod: Request for Response Schema Validation when using react-query + Zod Option HOT 6
- Fetch: generator does not seem to support multiple response types HOT 1
- Export VerbOptions and other important types HOT 1
- Mode: New mode for splitting `httpClient` and `client` code into two files HOT 1
- Zod: generation of typed tuples produces illegal zod array syntax HOT 7
- Zod: oneOf with regex and string().email() missing 'regex' variable type HOT 1
- ReactQuery: pageParams not inheriting initialPageParam type (always unknown)
- ReactQuery: useQuery not inherit data from select HOT 2
- OpenAPI spec parsing bug HOT 9
- Feature Request: Ability to exit on validation warnings HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orval.