NestJS Swagger: Array of object Example

Note Statistics

Note Statistics

  • Viewed 463 times
Mon, 02/13/2023 - 20:48

class ToDo {
	 @ApiProperty()
		name: string;: 
}

class ToDoList {
		@ApiProperty({
				type: ClientGrant,
				isArray:true,
		})
		todos: ToDo[];
}
Authored by