| 400 | // ***** Endpoint for ValidatorBefore with custom format ****** |
| 401 | C_ATTR(beforeFormat, :Local :AutoArgs) |
| 402 | void beforeFormat(Context *c) |
| 403 | { |
| 404 | Validator v({new ValidatorBefore(u"before_field"_s, |
| 405 | QDateTime::currentDateTime(), |
| 406 | QString{}, |
| 407 | "yyyy d MM HH:mm", |
| 408 | m_validatorMessages)}); |
| 409 | checkResponse(c, v.validate(c)); |
| 410 | } |
| 411 | |
| 412 | // ***** Endpoint for ValidatorBefore with invalid validation data ****** |
| 413 | C_ATTR(beforeInvalidValidationData, :Local :AutoArgs) |