-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Named swagger schema #2070
Comments
@andreafspeziale Sounds good to me! Would you like to create a PR? :) |
@BrunnerLivio No problems by using I've also start testing what I was proposing above but unfortunately it is not 100% what I would like to achieve. Adding but it will not possible to smoothly have it listed at the bottom I'm not sure how to achieve it but my feeling is that the only way would be to have the schemas as classes and import them into the
Any suggestion to this brainstorming? |
Yeah that'd be nice! Can you specify the version that is defined within the
I haven't looked too deeply into it, but it may be related to this issue. |
@BrunnerLivio Oh! I didn't notice the I checked the issue u linked above and following your suggestion I did some tests but unfortunately I never saw the schemas rendering at the bottom of the swagger page. Maybe I'm just misunderstanding your suggestion. Could you try to be more specific? I will be happy to try it out on my side! By the way I developed a similar use-case, as you can see from the previous comment screenshot I've an I achieved it by exporting a class and a decorator from one of my monorepo packages named As mentioned the package exports the class and a decorator to be used in the controllers:
Let me know your thoughts! P.s: I noticed that the package contains some files that I would not include Do you want me to open an issue and update the
Cheers and sorry for the late response I've been working on my first OS nestjs module! |
Is there an existing issue that is already proposing this?
Is your feature request related to a problem? Please describe it
Wouldn't be nice to have named schema in order to have a coherent look and feel like the others one?
Right now I see the following
Vs a typical schema
Maybe you wont give it a name in order to avoid any kind of application schema name collision (?) Just wondering...
Thanks in advance!
Describe the solution you'd like
Add
name
property here based on thestatus
? I don't know if it will do the trick.Teachability, documentation, adoption, migration strategy
I believe it would be quite "impactless".
What is the motivation / use case for changing the behavior?
Coherent look and feel of the generated swagger doc.
The text was updated successfully, but these errors were encountered: