You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of inject the whole response error message capture only arguments!!,
{"responseCode":400,
"message":"Validation failed for argument [0] in public org.springframework.http.ResponseEntity<com.plopez.diceroller.microservice.authservice.model.entity.AuthUser> com.plopez.diceroller.microservice.authservice.controller.AuthUserController.create(com.plopez.diceroller.microservice.authservice.model.dto.AuthUserDTO): [Field error in object 'authUserDTO' on field 'password': rejected value [null]; codes [NotBlank.authUserDTO.password,NotBlank.password,NotBlank.java.lang.String,NotBlank]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [authUserDTO.password,password]; arguments []; default message [password]]; default message [Password must not be null.]] "
Instead of inject the whole response error message capture only arguments!!,
{"responseCode":400,
"message":"Validation failed for argument [0] in public org.springframework.http.ResponseEntity<com.plopez.diceroller.microservice.authservice.model.entity.AuthUser> com.plopez.diceroller.microservice.authservice.controller.AuthUserController.create(com.plopez.diceroller.microservice.authservice.model.dto.AuthUserDTO): [Field error in object 'authUserDTO' on field 'password': rejected value [null]; codes [NotBlank.authUserDTO.password,NotBlank.password,NotBlank.java.lang.String,NotBlank]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [authUserDTO.password,password]; arguments []; default message [password]]; default message [Password must not be null.]] "
,"messageDescription":"uri=/auth/create","responseTimeStamp":"2024-02-07T19:36:03.938+00:00"}
Expected:
arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [authUserDTO.password,password]; arguments []; default message [password]]; default message [Password must not be null.]] "
The text was updated successfully, but these errors were encountered: