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
Backport webdav methods from next to current branch #5412
Comments
Moving my comment here: Per @climba03003's comment: #4409 (review) Backporting these shorthands could conflict with decorated properties of current users, making this breaking |
Is there currently a system to prevent http methods from being used as decorators? We could implement a way to warn the user that he will not be able to use a method name as a decorator in the next version. In the current version we could check the name of the decorator used, display a warning and prioritize the execution of the user decorator rather than the method to avoid any break. Just an idea :) Even if V5 was released tomorrow, I think the NestJs team will take some time before integrating this version into their framework. |
It just throws, as an example you can try:
I (and others) really want How about making decorated webdav methods an option (turned off by default in I would fully support that actually |
You are not block from using those methods by |
I think that creating the verb helpers could be done inside Nest if you really need them. Generically this is not needed, because you can always use |
Indeed the problem is that Nest uses the instance followed by the method to handle the requests in their adapter: https://github.com/nestjs/nest/blob/727032e46e2371a934a1a99ec42634fabd271738/packages/platform-fastify/adapters/fastify-adapter.ts#L705 |
This is probably the best solution in the meantime. In my view, Nest's Fastify adapter should call methods from If there are no other comments I will close this discussion. |
Prerequisites
Issue
Hi team,
I would like to know if it would be possible to backport this commit (#4409) to the current branch.
It was merged a long time ago now and I'm not sure that v5 will be ready soon.
On NestJS side I have a PR waiting for these changes: nestjs/nest#13278
These changes have been expected by many for some time, with very little effort I think we could offer this feature right now.
I tested these changes and everything works fine on v4.2 (only the body parsing is missing: #5411)
The text was updated successfully, but these errors were encountered: