Limitation - Innacurate response schema
A limitation that is inherent to 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 findOne()
route in the UsersController
, it simply understands that a User
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.
Last updated