| 11 | } |
| 12 | |
| 13 | class UserDto { |
| 14 | @ApiProperty({ type: 'string' }) |
| 15 | name: string; |
| 16 | |
| 17 | @ApiProperty({ type: 'number' }) |
| 18 | age: number; |
| 19 | |
| 20 | @ApiPropertyOptional({ type: () => AddressDto }) |
| 21 | address?: AddressDto; |
| 22 | } |
| 23 | |
| 24 | it('returns a schema object for a simple DTO', () => { |
| 25 | const { schema } = generateSchema(AddressDto); |
nothing calls this directly
no test coverage detected
searching dependent graphs…