Nestjs has great swagger decorators!

Posted on Jul 16, 2021

Nestjs has very great decorators to annotate your routes, dtos and controllers. This makes it really easy to keep your Swagger or OpenAPI documentation up to date.

https://docs.nestjs.com/openapi/types-and-parameters

Only downside: as TypeScript interfaces do not exist at runtime, you need to declare all your data transfer objects as classes, which might lead you to add convenience or validation methods to them. Don’t do it. These classes are just decorations.