MCPcopy
hub / github.com/nestjs/swagger / UserDto

Class UserDto

test/utils/generate-schema.util.spec.ts:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 2

ApiPropertyFunction · 0.90
ApiPropertyOptionalFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…