> 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/limitation-innacurate-response-schema.md).

# Limitation - Innacurate response schema

A limitation that is inherent to TypeORM (and most ORMs).

If we take a look at the Swagger UI, notice that the response schemas generated by Swagger are not always accurate. For instance, in the <mark style="color:blue;">`findOne()`</mark> route in the <mark style="color:blue;">`UsersController`</mark>, it simply understands that a <mark style="color:blue;">`User`</mark> is returned, but not with which relations, for example. This results in nearly the entire database schema being shown in the sample response. This could be improved by manually describing entities' schemas, but this would be very laborious and won't be done here. Of course, the reader is welcome to try if they want to.
