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
Hi, I've noticed that when extending a class (Child) from another (Parent), using PartialType (for example, but this is the same with the other wrappers) doesn't add the Parent properties decorators to the Child.
How did I notice this ? I've some swagger @ApiProperty() decorators in my CreateDto, and when extending the UpdateDto extends PartialType(CreateDto) {}, the UpdateDto doesn't have any properties in the Swagger.``
However, removing the PartialType wrapper "fix" the issue.
Is there an existing issue for this?
Current behavior
Hi, I've noticed that when extending a class (
Child
) from another (Parent
), usingPartialType
(for example, but this is the same with the other wrappers) doesn't add theParent
properties decorators to theChild
.How did I notice this ? I've some swagger
@ApiProperty()
decorators in myCreateDto
, and when extending theUpdateDto extends PartialType(CreateDto) {}
, theUpdateDto
doesn't have any properties in the Swagger.``However, removing the
PartialType
wrapper "fix" the issue.Reproduction
https://stackblitz.com/edit/nestjs-issue-minimum-repro-starter-2zmyjl
Expected behavior
All the
Parent
properties decorators should be copied to theChild
.Package version
2.0.2
Node.js version
18.16.1
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: