Add mixins (extends) feature to work with @nestjs/mapped-types and @nestjs/swagger #550
Open
2 of 9 tasks
Labels
bug
Something isn't working
Is there an existing issue for this?
Describe the issue
Hello folks,
I want to create a DTO class that keeps the @Swagger() and @AutoMap() annotations.
The problem is that the swagger annotations are not taken ...
![image](https://private-user-images.githubusercontent.com/130453948/240308524-22a2be0d-d851-4540-92a2-51df7636f390.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NjIyMTUsIm5iZiI6MTczOTU2MTkxNSwicGF0aCI6Ii8xMzA0NTM5NDgvMjQwMzA4NTI0LTIyYTJiZTBkLWQ4NTEtNDU0MC05MmEyLTUxZGY3NjM2ZjM5MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQxOTM4MzVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04NmRjNTQwM2I3MjFhMjI2NTg3YjMwMDc3YmI1M2ZmNmFhMTE4OTY4MTU1OWIzMzZiZTk3ZWRlNmM5YTZiN2Q1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.pLR10pWJXCqzoaNgVVLOP3WMryq63jgNvt96pjoHT-w)
If I use the PickType of swagger, I loose the @AutoMap() metadata ...
I found an issue that was closed but never got resolved : #271
Is there a solution for that ?
Models/DTOs/VMs
Parent class :
Subclass DTO :
Mapping configuration
No response
Steps to reproduce
No response
Expected behavior
To keep both @AutoMap() and @ApiProperty() metadata
Screenshots
No response
Minimum reproduction code
No response
Package
@automapper/core
@automapper/classes
@automapper/nestjs
@automapper/pojos
@automapper/mikro
@automapper/sequelize
Other package and its version
No response
AutoMapper version
8.0.0
Additional context
No response
The text was updated successfully, but these errors were encountered: