-
Notifications
You must be signed in to change notification settings - Fork 15
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
Same schema on different request Methods #54
Comments
hope this repo is still maintained 🙏 cause this module is helping so much |
We really need a solution for this problem. If we use an endpoint with different methods like POST PUT and GET and each one is giving another response, typescript is not distinguish between those methods in the response. The typescript response schema is the same for ALL methods and thats wrong. I dont know how to solve this problem and it looks like a typescript bug in your module |
Hi @schillerenrico, |
Hello @enkot, When using the DELETE method typescript requires it to have a query property but that should not be the case for DELETE, just for the GET method |
Environment
Reproduction
using a swagger.json like this
Describe the bug
When I request the "GET" the generated schema wanted me to provide "query" with pagesize and page. Thats totally fine.
But if I request the "DELETE" it uses the same schema and wants me to provide page and pagesize as well.
Is this a bug or a swagger misconfiguration. Cause in swagger no parameters are needed for the "DELETE" method
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: