> For the complete documentation index, see [llms.txt](https://kinesis-school-of-programming.gitbook.io/nestjs-unleashed/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinesis-school-of-programming.gitbook.io/nestjs-unleashed/extra-module-3-openapi-specification/file-name-suffixes.md).

# File name suffixes

File extensions that are detected by Swagger.

Let's now open, in the Swagger UI, the route to find all users. In schema, we can notice that the <mark style="color:blue;">`registryDates`</mark> was not automatically detected, or at least not its fields. This happened because the Swagger plugin, by default, only detects files that end with <mark style="color:purple;">.dto</mark> or <mark style="color:purple;">.entity</mark>. To fix this, we should override the plugin's default behavior.

So, back in the <mark style="color:purple;">nest-cli.json</mark> file, we can replace the simplified definition of the plugin:

```json
"plugins": ["@nestjs/swagger"]
```

With the complete definition, which receives both the <mark style="color:blue;">`name`</mark> and the <mark style="color:blue;">`options`</mark>.

```json
"plugins": [
  {
    "name": "@nestjs/swagger",
    "options": {
      "dtoFileNameSuffix": [
        ".dto.ts",
        ".entity.ts",
        ".embedded.ts",
        ".schema.ts"
      ]
    }
  }
]
```

Through the option <mark style="color:blue;">`dtoFileNameSuffix`</mark>, we define what file types Swagger should analyse. We use the default extensions already mentioned, plus <mark style="color:purple;">.embedded</mark>: the extension of the <mark style="color:blue;">`RegistryDates`</mark>. The <mark style="color:purple;">.schema</mark> extension that was also added will be used in the future.

After restarting the application and refreshing the Swagger UI, we can then see that the <mark style="color:blue;">`registryDates`</mark> was correctly detected now.

<mark style="color:green;">**Commit**</mark> - Enabling additional file suffixes
