"@nestjs/swagger":"^5.2.0",CLI插件没有注释所有dtos和schemas类。nest-cli.json
{
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"compilerOptions": {
"assets": ["mail/templates/**/*"],
"watchAssets": true,
"plugins": [
{
"name": "@nestjs/swagger",
"options": {
"dtoFileNameSuffix": [".dto.ts", ".schema.ts"]
}
}
]
}
}
尝试了嵌套构建和嵌套启动,但是.dto.ts保持不变
export class BulkUploadDto {
file: string;
}
发布于 2022-03-17 16:48:53
你知道插件不会接触源文件,对吗?您可以比较.dto.js
是否启用插件。
https://stackoverflow.com/questions/71515846
复制相似问题