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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5MTIzMzMsIm5iZiI6MTcxOTkxMjAzMywicGF0aCI6Ii8xMzA0NTM5NDgvMjQwMzA4NTI0LTIyYTJiZTBkLWQ4NTEtNDU0MC05MmEyLTUxZGY3NjM2ZjM5MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwMlQwOTIwMzNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iYzRlNjY4MDQyNTEwYTk2M2RjYWRiOGNmMDZlNmQ3NTlhZTIzZTI2ZjgzY2ZiMTMzNGI4YTdmNGFkMzFkYjE4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.5BhfGSAbDUPAPGavKBRKiAekrQXY-tX0SwNk0ZYpBnA)
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: