diff --git a/nest-cli.json b/nest-cli.json index ece5cf32..5c0b2726 100644 --- a/nest-cli.json +++ b/nest-cli.json @@ -10,6 +10,22 @@ "outDir": "dist" } ], - "plugins": [] + "plugins": [ + { + "name": "@nestjs/swagger", + "options": { + "dtoFileNameSuffix": [".dto.ts", ".schema.ts", "APIError.ts"], + "controllerFileNameSuffix": ".controller.ts", + + "dtoKeyOfComment": "description", + "controllerKeyOfComment": "summary", + + "classValidatorShim": true, + "introspectComments": true, + "skipAutoHttpCode": true, + "esmCompatible": false + } + } + ] } } \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index e8bfc2d7..e648f851 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,7 +21,7 @@ /* Interop Constraints */ "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ - "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ + "forceConsistentCasingInFileNames": false, /* Ensure that casing is correct in imports. */ /* Type Checking */ "strict": true, /* Enable all strict type-checking options. */