-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Validating request but not response ? #185
Comments
Hello Alex, Thank you for the suggestion. |
100% agree that everything should be validated on controlled API, i'm still in those use-cases where I don't have any control on the API used 😓 thanks for the quick answer ! |
this is now available on |
that was quick 😄 ! thanks |
Currently we can validate both the request payload sent and the response content using
validate
or noneContinuing my reasoning (and use-cases for
openapi-zod-client
) that not all APIs are in our own control, and therefore that we can only control what we send in the request payload,would you consider having a validate mode (as a string enum ?) with the current boolean ?
something like:
validate: "request" | "response" | boolean
tbh I don't know if a
response
mode would really be useful but I added it in the example above so that every options are availableThe text was updated successfully, but these errors were encountered: