0

I use the swagger plugin from nestjs to annotate all dto models for swagger, but it selects the *.entity.ts models too.

My nest-cli.json:

{
  "$schema": "https://json.schemastore.org/nest-cli",
  "collection": "@nestjs/schematics",
  "sourceRoot": "src",
  "compilerOptions": {
    "plugins": [
      {
        "name": "@nestjs/swagger",
        "options": {
          "dtoFileNameSuffix": [".dto.ts"]
        }
      }
    ]
  }
}

Is there any way I can force the plugin to ignore the entity models?

Ken White
  • 123,280
  • 14
  • 225
  • 444
Bsel
  • 85
  • 9

0 Answers0