1) Set the @Past annotation for some date field
2) Try to create new instance with invalid date using REST API
3) See the response body:
AR:
{
"message": "must be in the past",
"messageTemplate": "{javax.validation.constraints.Past.message}",
"path": "dateOfBirth",
"invalidValue": 1572617541047
}
Environment
Description of the bug or enhancement
1) Set the @Past annotation for some date field 2) Try to create new instance with invalid date using REST API 3) See the response body: AR:
ER "invalidValue" param must have the Date type