cuba-platform / cuba

CUBA Platform is a high level framework for enterprise applications development
https://www.cuba-platform.com
Apache License 2.0
1.34k stars 221 forks source link

@Future and @Past validations have wrong invalidValue in the response body in the REST API #1491

Closed sukhova closed 5 years ago

sukhova commented 6 years ago

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:

    {
        "message": "must be in the past",
        "messageTemplate": "{javax.validation.constraints.Past.message}",
        "path": "dateOfBirth",
        "invalidValue": 1572617541047
    }

ER "invalidValue" param must have the Date type

knstvk commented 5 years ago

Issue moved to cuba-platform/restapi #40 via ZenHub