Swagger mapped types

Mapped types that work with Swagger.

We should then go to the file update-user.dto and change the import of the PartialType, from mapped-types to swagger. This should also be done with all the mapped types that are being used in the system, you can for example search for PartialType, to make this easier. With this, the functionality remains the same but it is also automatically detected by Swagger. When accessing the Swagger UI now, if you check the update user route and click on schema, you will also note that the fields are all optional, as they lack the red asterisk, present in the required fields.

Our system has been almost entirely mapped by Swagger. However, some fine adjustments are still necessary, so let's go through them in order to have a more robust documentation.

Commit - Integrating mapped types with swagger

Last updated