Decorators
- Assume you have a lot of optional fields in your DTO and you wanna make sure that at least one of them were sent by the client, here is how you can do it.
- Assume you wanna enforce that client can only send one of the fields in your DTO and not both of them at the same time, here is how you can do it.