mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 20:19:26 +01:00
17 lines
462 B
TypeScript
17 lines
462 B
TypeScript
import {schema} from '@ioc:Adonis/Core/Validator'
|
|
import {HttpContextContract} from '@ioc:Adonis/Core/HttpContext'
|
|
|
|
export default class InformationUpdateValidator {
|
|
public schema = schema.create({
|
|
age: schema.number.optional(),
|
|
hiring_status: schema.string.optional(),
|
|
hiring_color: schema.string.optional()
|
|
})
|
|
public messages = {
|
|
required: 'The field {{field}} is required'
|
|
}
|
|
|
|
constructor (protected ctx: HttpContextContract) {
|
|
}
|
|
}
|