-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
Dynamic decorator name #213
Comments
Sure, send a PR. Note that in fastify you can achieve this by using multiple levels of plugins via encapsulation: this is an issue on the Nestjs Fastify adapter. See https://www.fastify.io/docs/latest/Decorators/#decorators-and-encapsulation.
I don’t think Nest exposes all of this.
Il 7 nov 2019, 10:41 +0100, Théo Mathieu <[email protected]>, ha scritto:
… 🚀 Feature Proposal
Add the possibility to choose a dynamic name for fastify.decorate('....') (See https://github.com/fastify/fastify-swagger/blob/master/static.js#L59)
Motivation
Being able to generate multiple documentations path within a nest app. nestjs/swagger#234
How to
The idea would be to pass it as new option (decoratorName ?)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
This was referenced Dec 9, 2019
We can close this now, the original problem is fixed in nestjs/swagger |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🚀 Feature Proposal
Add the possibility to choose a dynamic name for
fastify.decorate('....')
(See https://github.com/fastify/fastify-swagger/blob/master/static.js#L59)Motivation
Being able to generate multiple documentations path within a nest app. nestjs/swagger#234
How to
The idea would be to pass it as new option (
decoratorName
?)The text was updated successfully, but these errors were encountered: