mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
20 lines
492 B
TypeScript
20 lines
492 B
TypeScript
import { schema } from '@ioc:Adonis/Core/Validator'
|
|
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
|
|
|
|
export default class ExperienceStoreValidator {
|
|
constructor (protected ctx: HttpContextContract) {
|
|
}
|
|
|
|
public schema = schema.create({
|
|
title: schema.string(),
|
|
company: schema.string(),
|
|
location: schema.string(),
|
|
beginDate: schema.string(),
|
|
endDate: schema.string()
|
|
})
|
|
|
|
public messages = {
|
|
required: 'The field {{field}} is required'
|
|
}
|
|
}
|