We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello folks,
I want to create a DTO class that keeps the @Swagger() and @AutoMap() annotations.
import { DictionaryEntryDto } from './dictionary-entry.dto'; import { MapperPickType } from '@automapper/classes/mapped-types'; export class CreateDictionaryEntryDto extends MapperPickType( DictionaryEntryDto, ['definition', 'name'], ) {}
The problem is that the swagger annotations are not taken ...
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 ?
Parent class :
import { ApiProperty } from '@nestjs/swagger'; import { IsString, MaxLength, MinLength } from 'class-validator'; import { DictionaryDto } from 'src/dictionary/dto/dictionary.dto'; import { DictionaryEntry } from '../entities/dictionary-entry.entity'; import { AutoMap } from '@automapper/classes'; export class DictionaryEntryDto implements DictionaryEntry { @AutoMap() @ApiProperty({ example: '64f52fdb-7621-454f-a35e-524ee2ab3466', type: 'string', format: 'uuid', }) @IsString() id: string; @AutoMap() @ApiProperty({ example: 'test', }) @IsString() @MaxLength(28) @MinLength(3) name: string; @AutoMap() @ApiProperty({ example: 'test', }) @IsString() definition: string; dictionary: DictionaryDto; }
Subclass DTO :
No response
To keep both @AutoMap() and @ApiProperty() metadata
@automapper/core
@automapper/classes
@automapper/nestjs
@automapper/pojos
@automapper/mikro
@automapper/sequelize
8.0.0
The text was updated successfully, but these errors were encountered:
@micalevisk @nartc Hello folks !
Could you please help me with this problem ? I know you had already the same issue #271
Do you have any work around or did I miss something ?
Thank you in advance guys your library is gold !
Sorry, something went wrong.
We also would need an update for this issue
Any updates on this ticket guys ?
No branches or pull requests
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 ...
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: