Hi @dkayiwa
I’m having a problem with the validator implemented.
When I call endpoint /programenrollment
with a payload that should not pass validation, the message from error response is actually the key from the messages bundle:
{
"error": {
"message": "Invalid Submission",
"code": "webservices.rest.error.invalid.submission",
"globalErrors": [
{
"code": "error.patientProgram.patientMustBeAged5OrYounger",
"message": "error.patientProgram.patientMustBeAged5OrYounger"
}
],
"fieldErrors": {}
}
}
Any idea what might be wrong?