NestJS · Junior · Question 56 of 75

How do you generate OpenAPI (Swagger) docs in Nest?

Explanation

Decorators like @ApiProperty() describe DTOs; the Swagger CLI plugin can infer many of them from TypeScript types.

Further reading

Problem with a question

NestJS · Junior · question 56

Test yourself

Take the NestJS · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz