> 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

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kinesis-school-of-programming.gitbook.io/nestjs-unleashed/extra-module-3-openapi-specification/file-name-suffixes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
