Skip to content
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

Extend rule: "param-decorator-name-matches-route-param" #55

Open
ScrapsPrograms opened this issue Apr 1, 2023 · 0 comments
Open

Extend rule: "param-decorator-name-matches-route-param" #55

ScrapsPrograms opened this issue Apr 1, 2023 · 0 comments

Comments

@ScrapsPrograms
Copy link

I'm new to NestJS but have learned a lot in the past few weeks. One of those things is that it's possible to set route params using the built-in RouterModule.register() function.

image

Now, I noticed in the TicketController (which is the Controller used by the TicketModule), I cannot access the declared :columnid param. I've checked the express req.params object and it does contain this param with the correct value. Is it possible for this rule to be updated to check if any Module uses the RouterModule.register() function and, if so, check for any registered params?

image

I understand my request may be a relatively specific use-case, maybe even an edge-case, but given the scalability of my application it would make it much harder to manage if I needed to specify each path-piece in every submodule or controller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants