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
This has been discussed in the past and we decided to not implement it in the foreseeable future.
If you think your request could live outside Nest's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.
Is there an existing issue that is already proposing this?
Is your feature request related to a problem? Please describe it
When using the
@ApiResponse
decorators, we need to use thetype
and override some schema properties: e.g. theexample
.This is currently not possible.
Describe the solution you'd like
The
@ApiResponse
decorators, should "merge" an explicit schema to the schema generated from thetype
.Stackblitz example
In the following decorator, the schema example is ignored and instead the default example (generated from the DTO properties is used):
Teachability, documentation, adoption, migration strategy
I think toRefObject could be changed to not override the whole schema, but only
$ref
, e.g.What is the motivation / use case for changing the behavior?
The motivation is to be able to mix type and explicit schema
The text was updated successfully, but these errors were encountered: