'nest-cli @nestjs/swagger plugin don't work
The "@nestjs/swagger": "^5.2.0", CLI Plugin isn't annotating all dtos and schemas classes . nest-cli.json
{
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"compilerOptions": {
"assets": ["mail/templates/**/*"],
"watchAssets": true,
"plugins": [
{
"name": "@nestjs/swagger",
"options": {
"dtoFileNameSuffix": [".dto.ts", ".schema.ts"]
}
}
]
}
}
Tried nest build and nest start but .dto.ts remains same
export class BulkUploadDto {
file: string;
}
Solution 1:[1]
do you know that the plugin won't touch source files, right? you can compare the .dto.js with and without the plugin enabled
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Micael Levi |
