-
The My validator schema startDate: schema.date({
format: 'yyyy-MM-dd',
}),
endDate: schema.date(
{
format: 'yyyy-MM-dd',
},
[rules.afterField('startDate')]
), Body request {
"startDate": "2000-01-30",
"endDate": "2000-01-01"
} My model @column.date()
public startDate: DateTime
@column.date()
public endDate: DateTime env "Node": "12.18.2",
"NPM": "6.14.5",
"@adonisjs/core": "^5.0.0-preview-rc", |
Beta Was this translation helpful? Give feedback.
Answered by
fnoquiq
Aug 13, 2020
Replies: 1 comment
-
Changed to issue on adonisjs/validator#95 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
fnoquiq
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Changed to issue on adonisjs/validator#95