There are DTOs that are missing required field validation, for example, LoginUserDTO and UpdateDisplayNameDTO. This results into the server crash should the request body contain a json without the required fields:
See line 250 of 'controller.go' for an example.
Acceptance Criteria
[ ] All DTO objects in server>resource_server>DTO>dto.go should have validation criteria added as appropriate.
[ ] there should be a call to validator.New().Struct(request)
There are DTOs that are missing required field validation, for example,
LoginUserDTO
andUpdateDisplayNameDTO
. This results into the server crash should the request body contain a json without the required fields:See line 250 of 'controller.go' for an example.
Acceptance Criteria