You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there an existing issue that is already proposing this?
I have searched the existing issues
Is your feature request related to a problem? Please describe it
I'm having a code to generate swagger schema from Joi.schema (it works and I need to generate from them because this Joi.schema is generated from a minimal and base schema) like this:
Unfortunately, this type of declaration does not generate a reference in the schemas at the end of the swagger.
Describe the solution you'd like
I would like it to be possible to also pass the name of the type from this type of reference and for the generated schema to appear in the schema references at the end of the swagger.
Users will be able to not only declare types in swagger's component.schemas via classes but also generate them dynamically as I am doing.
What is the motivation / use case for changing the behavior?
To avoid having to manually write countless DTOs for methods that are standardized but only change the properties of the reference entity, this type of approach would help a lot in the development process.
The text was updated successfully, but these errors were encountered:
Thank you for taking the time to submit your report! From the looks of it, this could be better discussed on our Discord. If you haven't already, please join here and send a new post in the # 🐈 nestjs-help forum. Make sure to include a link to this issue, so you don't need to write it all again. We have a large community of helpful members, who will assist you in getting this to work.
Is there an existing issue that is already proposing this?
Is your feature request related to a problem? Please describe it
I'm having a code to generate swagger schema from Joi.schema (it works and I need to generate from them because this Joi.schema is generated from a minimal and base schema) like this:
Unfortunately, this type of declaration does not generate a reference in the schemas at the end of the swagger.
Describe the solution you'd like
I would like it to be possible to also pass the name of the type from this type of reference and for the generated schema to appear in the schema references at the end of the swagger.
Teachability, documentation, adoption, migration strategy
Users will be able to not only declare types in swagger's component.schemas via classes but also generate them dynamically as I am doing.
What is the motivation / use case for changing the behavior?
To avoid having to manually write countless DTOs for methods that are standardized but only change the properties of the reference entity, this type of approach would help a lot in the development process.
The text was updated successfully, but these errors were encountered: