-
Notifications
You must be signed in to change notification settings - Fork 122
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
Not able to crate post method with schema validation. #202
Comments
Missing code:
Also add example for post method zod with open api |
Same here. Could not create post requests. Didn't manage to make Swagger working but via Postman the create endpoint works. Here is a simple code for creating a user: userModel.ts
userRepository.ts
userService
userRouter
server.ts
|
@devdomsos
use,
|
I managed to get around this by adding the following lines of code server.ts httpHandlers.ts > validateRequest
and my schema format is
so that the client doesn't have to send a json with nested "body" property |
Not able to crate post method.
Please provide one example of post, put method with schema validation.
The text was updated successfully, but these errors were encountered: